Replication
The replication feature of Arvancloud Object Storage lets you automatically copy the objects and files of one bucket to another bucket.
If you want to store your data in two different locations for purposes such as backup, or put it in several geographic locations to reduce latency in accessing data, you can easily use this Object Storage feature.
This feature is available on the Growth, Professional, and Enterprise plans.
Enabling Replication
To enable replication on a bucket, select the source bucket from the bucket list in the Object Storage panel and go to Replication.
Click New Rule to enter the replication settings for this bucket.
-
Rule name
In this section, choose a name for the replication rule.
This name can include numbers, English letters, and the _ and - characters. Also, the names of a bucket's replication rules can't be duplicated.
-
Apply to all objects
If you enable this, all files in this bucket are sent to the destination bucket. By disabling it, you can filter your objects by prefix, tag, or a combination of both, so only the files you want are sent to the destination bucket.
A prefix is the first characters of an object's name.
-
Destination bucket
In the last section, you can select the bucket you want the source files sent to.
Finally, click Save to create the rule.
Note that replication only happens while rules are active, and the rule is disabled if the source or destination bucket is deleted.
The replication process applies to all objects in the bucket, but to prevent human error, it doesn't run when objects are deleted and only syncs new file uploads.
Replication copies the source bucket's objects to the destination bucket one way. To implement two-way sync, you can define two rules, one for the source bucket and another for the destination bucket.
Managing Replication
In each bucket's Replication section, you can edit or delete the rules you've defined. You can also stop the replication defined in a rule by disabling it.