Instructions for restoring buckets 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.debmcli alias set myminio/ MINIO_SERVER_URL MINIO_ADMIN_USERNAME MINIO_ADMIN_PASSWORDmcli ls myminio/BUCKET_NAMEmcli mirror myminio/BUCKET_NAME path-to-your-local-backup-folder/BUCKET_NAME --overwritemcli mirror path-to-your-local-backup-folder/BUCKET_NAME myminio/BUCKET_NAME --overwrite
Just to clarify for other: in the gist, I'm using
mclias 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
mcutitily, and either usemcdirectly or alias it asmclilike I did:That way, the commands in the gist will work seamlessly.
Thanks again for the helpful comment! 🙏🏻