Instructions for restoring bucket
s using Minio mirror
features.
Install Link install link
Linux AMD64 DEB:
wget https://dl.min.io/client/mc/release/linux-amd64/mcli_20240722200249.0.0_amd64.deb
sudo dpkg -i mcli_20240722200249.0.0_amd64.deb
mcli alias set myminio/ MINIO_SERVER_URL MINIO_ADMIN_USERNAME MINIO_ADMIN_PASSWORD
mcli ls myminio/BUCKET_NAME
mcli mirror myminio/BUCKET_NAME path-to-your-local-backup-folder/BUCKET_NAME --overwrite
mcli mirror path-to-your-local-backup-folder/BUCKET_NAME myminio/BUCKET_NAME --overwrite
Just to clarify for other: in the gist, I'm using
mcli
as a custom alias for MinIO's official command-line tool, which is actuallymc
.So if you're following the steps, make sure you've installed MinIO's
mc
utitily, and either usemc
directly or alias it asmcli
like I did:That way, the commands in the gist will work seamlessly.
Thanks again for the helpful comment! 🙏🏻