mc replicate resync
Syntax
The mc replicate resync command resynchronizes all objects in the specified MinIO bucket to a remote replication target.
This command requires first configuring the remote bucket target using the mc replicate add command. You must specify the resulting remote ARN as part of running mc replicate resync.
This command supports rebuilding a MinIO deployment using an active-active replication remote as the “backup” source. See the following tutorials for more information on active-active replication:
The following command resynchronizes the content of the mydata bucket on the myminio MinIO deployment to the remote MinIO deployment associated to the specified --remote-bucket:
The command has the following syntax:
- Brackets
[]indicate optional parameters. - Parameters sharing a line are mutually dependent.
- Parameters separated using the pipe
|operator are mutually exclusive.
Copy the example to a text editor and modify as-needed before running the command in the terminal/shell.
Parameters
ALIAS
mc-cmd
Required
The alias of the MinIO deployment and full path to the bucket or bucket prefix which MinIO uses as the replication source. For example, the following command starts replication using the data bucket on the MinIO deployment associated to the primary alias.
start
mc-cmd
Required
Starts the resynchronization procedure using the specified bucket as the source and the --remote-bucket as the remote target.
Mutually exclusive with mc replicate resync status.
status
mc-cmd
Required
Returns the status of resynchronization on the specified bucket to all remote targets.
Include the --remote-bucket argument to filter the status output to only the specified remote target.
--remote-bucket
mc-cmd
Required
Specify the ARN for the destination deployment and bucket.
You can retrieve the ARN using mc replicate ls with the --json option. The rule.Destination.Bucket field contains the ARN for any given replication rule.
older-than
mc-cmd
Optional
Specify a duration in days where MinIO only resynchronizes objects older than the specified duration.
Only valid with mc replicate resync start.
Global Flags
This command supports any of the global flags.
Examples
Resynchronize Remote Replication Target from Source Bucket
The following mc replicate resync command resynchronizes all objects on the specified source bucket to the remote target regardless of their replication status:
- Replace
primary/datawith theALIASand full bucket path for which to create the replication configuration. - Replace the
--remote-bucketvalue with the ARN of the remote target. Usemc replicate lsto list all configured remote replication targets.
Behavior
S3 Compatibility
SILO is the supported server for PGSTY mcli; compatibility with upstream MinIO and other S3 services is best effort.