Skip to content

Instantly share code, notes, and snippets.

@inceabdullah
Created January 1, 2024 10:04
Show Gist options
  • Save inceabdullah/4f872f75ccf0b4f3daeebd7f9a180cdd to your computer and use it in GitHub Desktop.
Save inceabdullah/4f872f75ccf0b4f3daeebd7f9a180cdd to your computer and use it in GitHub Desktop.
MinIO Migration
#!/bin/bash
SOURCE_MINIO=myminio
DESTINATION_MINIO=minio-cluster
BUCKET=bucket
mc ls $SOURCE_MINIO/$BUCKET |rargs -p '.*STANDARD (.*)$' mc cp $SOURCE_MINIO/$BUCKET/{1} $DESTINATION_MINIO/$BUCKET/{1}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment