1
0
mirror of https://github.com/minio/docs.git synced 2025-08-08 01:43:18 +03:00
Files
docs/source/administration/bucket-replication/enable-server-side-one-way-bucket-replication.rst
Daryl White 9374fb56e4 Aggregate information on deleting objects (#1218)
Creates a new object management page to aggregate information on
deleting objects.
Links to the page from other docs throughout.

Intentionally leaves most delete information where it is in existing
docs.
    
Closes #741
2024-05-17 16:28:45 -04:00

7.2 KiB

Enable One-Way Server-Side Bucket Replication

minio

Table of Contents

The procedure on this page creates a new bucket replication rule for one-way synchronization of objects from one MinIO bucket to another MinIO bucket. The buckets can be on the same MinIO deployment or on separate MinIO deployments.

Active-Passive Replication synchronizes data from a source MinIO deployment to a remote MinIO deployment.

  • To configure two-way "active-active" replication between MinIO buckets, see minio-bucket-replication-serverside-twoway.
  • To configure multi-site "active-active" replication between MinIO deployments, see minio-bucket-replication-serverside-multi

Note

To configure replication between arbitrary S3-compatible services (not necessarily MinIO), use mc mirror.

Requirements

Replication requires all participating clusters meet the following requirements <minio-bucket-replication-requirements>. This procedure assumes you have reviewed and validated those requirements.

For more details, see the Bucket Replication Requirements <minio-bucket-replication-requirements> page.

Considerations

Click to expand any of the following:

Procedure

  • Configure One-Way Bucket Replication Using the MinIO Console <minio-bucket-replication-one-way-minio-console-procedure>
    • Create a New Bucket Replication Rule <minio-bucket-replication-one-way-minio-console-create-replication-rules>
    • Validate the Replication Configuration <minio-bucket-replication-one-way-minio-console-validate-replication-config>
  • Configure One-Way Bucket Replication Using the Command Line <minio-bucket-replication-one-way-minio-cli-procedure>
    • Create a Replication Remote Target <minio-bucket-replication-one-way-minio-cli-create-remote-targets>
    • Create a New Bucket Replication Rule <minio-bucket-replication-one-way-minio-cli-create-replication-rules>
    • Validate the Replication Configuration <minio-bucket-replication-one-way-minio-cli-verify-replication-config>

Configure One-Way Bucket Replication Using the MinIO Console

1) Create a New Bucket Replication Rule

2) Validate the Replication Configuration

Configure One-Way Bucket Replication Using the Command Line mc

This procedure uses the aliases <alias> SOURCE and REMOTE to reference each MinIO deployment being configured for replication. Replace these values with the appropriate alias for your target MinIO deployments.

This procedure assumes each alias corresponds to a user with the necessary replication permissions <minio-bucket-replication-serverside-oneway-permissions>.

RELEASE.2022-12-24T15-21-38Z

mc replicate add automatically creates the necessary replication targets, removing the need for using the deprecated mc admin remote bucket add command. This procedure only documents the procedure as of that release.

1) Create a New Bucket Replication Rule

2) Validate the Replication Configuration

  • Use the mc replicate update command to modify an existing replication rule.
  • Use the mc replicate update command with the --state "disable" <mc replicate update --state> flag to disable an existing replication rule.
  • Use the mc replicate rm command to remove an existing replication rule.