mirror of
https://github.com/minio/docs.git
synced 2025-04-27 18:36:56 +03:00
2.1 KiB
2.1 KiB
mc replicate export
minio
Table of Contents
mc replicate export
Syntax
The mc replicate export
command exports the JSON-formatted
replication rules <minio-bucket-replication-serverside>
for a MinIO bucket to STDOUT
.
EXAMPLE
The following command exports the replication configuration for the
mydata
bucket on the myminio
MinIO
deployment:
mc replicate export myminio/mydata > mydata-replication.json
SYNTAX
The command has the following syntax:
mc [GLOBALFLAGS] export ALIAS
Parameters
ALIAS
Required the alias <alias>
of the MinIO deployment and full
path to the bucket or bucket prefix for which to export the replication
rules. For example:
mc replicate export myminio/mybucket
Global Flags
Examples
Export Existing Replication Rules
Use mc replicate export
to export bucket replication
rules:
mc replicate export ALIAS/PATH > bucket-replication-rules.json
- Replace
ALIAS <mc replicate export ALIAS>
with thealias <mc alias>
of the MinIO deployment. - Replace
PATH <mc replicate export ALIAS>
with the path to the bucket or bucket prefix.