1
0
mirror of https://github.com/minio/docs.git synced 2025-04-25 17:22:39 +03:00
docs/source/reference/minio-mc/mc-replicate-import.rst
2022-09-16 16:40:20 -04:00

2.3 KiB

mc replicate import

minio

Table of Contents

mc replicate import

Syntax

The mc replicate import command imports JSON-formatted replication rules <minio-bucket-replication-serverside> for a MinIO bucket from STDIN.

EXAMPLE

The following command imports the replication configuration for the mydata bucket on the myminio MinIO deployment:

mc replicate import myminio/mydata < mydata-replication.json

SYNTAX

The command has the following syntax:

mc [GLOBALFLAGS] import ALIAS

Parameters

ALIAS

Required the alias <alias> of the MinIO deployment and full path to the bucket or bucket prefix for which to import the replication rules. For example:

mc replicate import myminio/mybucket

Global Flags

Examples

Import Existing Replication Rules

Use mc replicate import to import bucket replication rules:

mc replicate import ALIAS/PATH < bucket-replication-rules.json
  • Replace ALIAS <mc replicate import ALIAS> with the alias <mc alias> of the MinIO deployment.
  • Replace PATH <mc replicate import ALIAS> with the path to the bucket or bucket prefix.

Behavior

Importing Configuration Overrides Existing Rules

mc replicate import replaces the current bucket replication rules with those defined in the imported JSON configuration.

S3 Compatibility