1
0
mirror of https://github.com/minio/docs.git synced 2025-09-09 09:09:38 +03:00
Files
docs/source/reference/minio-mc/mc-replicate-resync.rst

3.8 KiB

mc replicate resync

minio

Table of Contents

mc replicate reset

mc replicate resync

Syntax

The mc replicate resync command resynchronizes all objects in the specified MinIO bucket to a remote replication <minio-bucket-replication-serverside> target.

This command requires first configuring the remote bucket target using the mc admin bucket remote 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:

  • minio-bucket-replication-serverside-twoway
  • minio-bucket-replication-serverside-multi

EXAMPLE

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:

mc replicate resync  \
   --remote-bucket "arn:minio:replication::d3c086c7-1d64-40c2-954b-fe8222907033:mydata" \ 
   myminio/mydata

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] replicate resync          \
                 --remote-bucket "string"  \
                 [--older-than "string"]   \
                 ALIAS

Parameters

ALIAS

Required the alias <alias> of the MinIO deployment and full path to the bucket or bucket prefix which MinIO uses as the replication source. For example:

mc replicate resync myminio/mybucket
--remote-bucket

Required Specify the ARN for the destination deployment and bucket. You can retrieve the ARN using mc admin bucket remote:

  • Use the mc admin bucket remote ls to retrieve a list of ARNs for the bucket on the destination deployment.
  • Use the mc admin bucket remote add to create a replication ARN for the bucket on the destination deployment.

older-than

Optional Specify a duration in days where MinIO only resynchronizes objects older than the specified duration.

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:

mc replicate resync --remote-bucket "arn:minio:replication::UUID:mybucket" myminio/mybucket
  • Replace myminio/mybucket with the ~mc replicate add ALIAS and full bucket path for which to create the replication configuration.
  • Replace the ~mc replicate add --remote-bucket value with the ARN of the remote target. Use mc admin bucket remote ls to list all configured remote replication targets.

Behavior

S3 Compatibility