1
0
mirror of https://github.com/minio/docs.git synced 2025-04-27 18:36:56 +03:00
docs/source/reference/minio-mc/mc-replicate-export.rst
2022-01-04 19:11:15 -05:00

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 the alias <mc alias> of the MinIO deployment.
  • Replace PATH <mc replicate export ALIAS> with the path to the bucket or bucket prefix.

Behavior

S3 Compatibility