You can use same-region replication (SRR) to automatically copy objects across buckets in the same region. This feature lets you filter which objects are replicated and monitor their progress.
You can use SRR to back up your data locally to another bucket within the same region. As TOS does not currently charge for local data transfer, your costs will be lower.
What does SRR replicate?
What is replicated with SRR?
SRR replicates the following information about objects: content, size, last modified time, tag, creator, version number, user-defined metadata, and storage type. The following types of objects can be automatically replicated via an SRR rule:
- Objects that exist before the SRR rule takes effect.
tip
By default, the SRR rule does not synchronize existing objects. To do so, turn on the "Sync historical object" option in the rule.
- Objects uploaded after the SRR rule takes effect.
- Object overwrite operations. If an object in the source bucket is overwritten after replication, the overwrite operation will be synchronized again with the destination bucket.
warning
Only object overwrite operations will be synchronized again to the destination bucket for objects that have already been successfully replicated. Changes to object metadata, object access control lists (ACLs), and storage type will not be synchronized to the destination bucket.
What is not replicated with SRR?
- Object ACLs. By default, an object is set to private after it is replicated to the destination bucket.
- Objects stored in Archive, Cold Archive, or Deep Cold Archive.
- Objects with deletion marks.
- Object delete operations.
- RenameObject operations.
- Expiration times of objects.
The replication state helps you understand the current status of objects being replicated. You can view the replication state on the object details page:
- If the object is the source for SRR, the replication state section will display one of the following statuses: Pending, Failed, or Complete.
tip
The feature that allows you to view the replication status of source objects is currently in close beta. Contact your account manager for access.
- If the object is a target for SRR, this section will display Copied file.
- If the object is neither a source nor a target for SRR, this section will display -.
tip
You can also use the GetObject and HeadObject APIs to query the replication state of objects. For instructions, see GetObject and HeadObject. Same-account and cross-account SRR
After adding an SRR rule, you can use event notifications and logs to track new and updated objects in both the source and destination buckets. The instructions are as follows:
- Event notification: For an event notification rule, select tos:ObjectReplication:ObjectCreated and tos:ObjectReplication:ObjectModified as the event types. TOS will then deliver event notifications to the specified destination when an SRR rule adds or overwrites an object. For instructions, see Configuring event notifications.
- Logging: Use Torch Log Service to retrieve and analyze operation logs of objects. For instructions, see Log analysis.