MinIO extension APIs for backup and recovery of metadata exist for
- Backup and Restore of all bucket metadata
- Backup and Restore of all IAM users, policies and groups
Required permission: admin:ExportBucketMetadata
mc admin cluster bucket export myminio/mybucket
mc admin cluster bucket export myminio
Required permission: admin:ImportBucketMetadata
Create a bucket if missing on site2 and apply all the metadata in the zip file created previously on myminio with mc admin cluster export
cmd.
mc admin cluster bucket import site2/mybucket bucket1-metadata.zip
This will create buckets with proper versioning or object lock configuration and import all metadata settings using the zip file from prev. export command.
mc admin cluster bucket import site2 allbuckets-metadata.zip
Required permission: admin:ExportIAM
mc admin cluster iam export myminio
Required permission: admin:ImportIAM
Using previously exported iam metadata from myminio, recreate all users, policies, groups and mappings on site2
mc admin cluster iam import site2 myminio-iam-info.zip