Bucket replication issue - cniackz/public GitHub Wiki

Based on my testing, it appears that replication is limited to a one-to-one relationship with individual buckets. Attempting to replicate across multiple buckets seems to reproduce the issue.

telegram-cloud-photo-size-1-5015218017616899342-y

$ mc replicate list myminio/local
Rules:
Remote Bucket: play.min.io/randombucket21
  Rule ID: ckp8suvnl5360a98m1p0
  Priority: 0

$ mc replicate add myminio/local     --remote-bucket https://Q3AM3UQ867SPQQA43P2F:[email protected]/randombucket20     --insecure
mc: <ERROR> unable to configure remote target. The remote target already exists.
$ mc replicate add myminio/local     --remote-bucket https://Q3AM3UQ867SPQQA43P2F:[email protected]/randombucket21 --priority 2     --insecure
Replication configuration rule applied to myminio/local successfully.
$ mc replicate list myminio/local
Rules:
Remote Bucket: play.min.io/randombucket21
  Rule ID: ckp8suvnl5360a98m1p0
  Priority: 0

Remote Bucket: play.min.io/randombucket21
  Rule ID: ckp8u17nl5360k7sl5a0
  Priority: 2

$ mc replicate add myminio/local     --remote-bucket https://Q3AM3UQ867SPQQA43P2F:[email protected]/randombucket20 --priority 3     --insecure
mc: <ERROR> unable to configure remote target. The remote target already exists.

Solution/Limitation:

A target and remote bucket combination has to be unique per rule - unless the rule has some difference in terms of prefix

⚠️ **GitHub.com Fallback** ⚠️