Export Log Index Data from MinIO
Download mc
:
wget https://dl.min.io/client/mc/release/linux-amd64/mc
chmod +x mc
sudo mv mc /usr/local/bin/
Check Log Index Data
./mc alias set minio http://minio:9000 enterprise-logs supersecret
./mc ls minio
./mc find minio/chunks --older-than 120d --print "{time} {base}"
Export Log Index Data
./mc find minio/chunks/fake --older-than 1d --exec "./mc cp {} /home/opsuser/ahmad/minio/backup/{}"
./mc find minio/chunks/index --older-than 1d --exec "./mc cp {} /home/opsuser/ahmad/minio/backup/{}"
Zip Log Index Data
tar -czvf backup-$(date +%Y%m%d).tar.gz ./backup/minio/chunks
Download Zip File from Server
scp -i ~/.ssh/cert.crt [email protected]:/home/root/minio/backup-20241121.tar.gz /Users/home/Documents/
No Comments