bm replicate resync
Syntax
The bm replicate resync command resynchronizes all objects in the
specified Buckit bucket to a remote replication target.
This command requires first configuring the remote bucket target using the
bm replicate add command. You must specify the resulting
remote ARN as part of running bm replicate resync.
This command supports rebuilding a Buckit 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 mybuckit Buckit deployment to the remote
Buckit deployment associated to the specified --remote-bucket:
bm replicate resync start \
--remote-bucket "arn:minio:replication::d3c086c7-1d64-40c2-954b-fe8222907033:mydata" \
mybuckit/mydata
The command has the following syntax:
bm [GLOBALFLAGS] replicate resync start|status \
--remote-bucket "string" \
[--older-than "string"] \
ALIAS
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
- Required
The alias of the Buckit deployment and full path to the bucket or bucket prefix which Buckit uses as the replication source. For example, the following command starts replication using the
databucket on the Buckit deployment associated to theprimaryalias.bm replicate resync start primary/data --remote-bucket "ARN"
- start
- Required
Starts the resynchronization procedure using the specified
bucketas the source and the--remote-bucketas the remote target.Mutually exclusive with
bm replicate resync status.
- status
- Required
Returns the status of resynchronization on the specified
bucketto all remote targets.Include the
--remote-bucketargument to filter the status output to only the specified remote target.
- --remote-bucket
- Required
Specify the ARN for the destination deployment and bucket.
You can retrieve the ARN using
bm replicate lswith the--jsonoption. Therule.Destination.Bucketfield contains the ARN for any given replication rule.
- older-than
- Optional
Specify a duration in days where Buckit only resynchronizes objects older than the specified duration.
Only valid with
bm replicate resync start.
Global Flags
This command supports any of the global flags.
Examples
Resynchronize Remote Replication Target from Source Bucket
The following bm replicate resync command resynchronizes all objects
on the specified source bucket to the remote target regardless of their
replication status:
bm replicate resync start --remote-bucket "arn:minio:replication::UUID:data" primary/data
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. Usebm replicate lsto list all configured remote replication targets.
Behavior
S3 Compatibility
The bm commandline tool is built for compatibility with the AWS S3 API and is tested with Buckit and AWS S3 for expected functionality and behavior.
Buckit provides no guarantees for other S3-compatible services, as their S3 API implementation is unknown and therefore unsupported. While bm commands may work as documented, any such usage is at your own risk.