Overview
After enabling cross-region replication, you can copy incremental objects automatically and asynchronously from the source bucket to a target bucket in another region. When you perform management operations on objects in the source bucket (such as adding objects or deleting objects), COS will automatically copy these operations to the target bucket. You can choose to enable or disable cross-region replication based on your actual needs.
Prerequisites
Before enabling inter-cloud replication, ensure that the source bucket and the target bucket are in different regions, and have the Enable Version Control feature activated.
Enabling Inter-Cloud Replication
- Log in to the COS console.
- In the left sidebar, select Bucket List to enter.
- Click the name of the bucket for which you want to configure inter-cloud replication to go to the bucket's file list page.
- Select Fault Tolerance and Disaster Recovery Management > Bucket Replication, in the Inter-Cloud Replication configuration, click Add Rule to enter the inter-cloud replication rule configuration status.
- Configuring inter-cloud replication rules requires that both the source bucket and the target bucket have versioning rules enabled. If the version control feature is not enabled on both the source bucket and the target bucket, enable the versioning feature before configuring the inter-cloud replication rule.
- After the rules setting is completed, click OK.
The configuration items are described as follows:- Source Region: The region to which your source bucket belongs.
- Application Scope: Refers to the range of objects in the source bucket that need to be copied. If not set, all objects in the bucket are copied by default. If a prefix is specified, the content with a specific prefix is copied (for example, to copy a file with the
logs/prefix, fill inlogs/). - Resource Path: Your source bucket path.
- Destination Bucket: Refer to the bucket where the copied object is stored. Its region cannot be the same as the region of the source bucket. It does not support selecting a bucket that is not in the current account.
- Destination Storage Class: The storage type of objects after they are replicated to the destination bucket. This item follows the object type in the source bucket by default. You can select another storage type to modify the storage type of the object copies in the destination bucket. Currently, two storage types are supported: STANDARD and STANDARD_IA.
Note:
- After you have configured the rules, you can manage them. You can click the button to enable or disable the current rule and click the Edit button to modify the current rule.
- If you set the scope of inter-cloud replication rules to replicate all content in the storage bucket during the initial setup, you will not be able to add any new rules. You can modify the current rule by editing it or deleting it and then adding it again.
- If you set the application scope to the contents of a certain prefix when you first set up the inter-cloud replication rule, you can still modify the application scope to the entire content in the bucket by editing the current rule.
Disabling Inter-Cloud Replication
You can disable inter-cloud replication by disabling the status button or by deleting the rule.
- Disable status button: Temporarily disable the current rule by turning off the status button in a rule. This operation will pause the current inter-cloud replication feature. The replicated data will be retained in the target bucket, and the incremental data in the source bucket will no longer be copied to the destination bucket. If you need to use it again, click the Enable button.
- Delete rule: Delete the added rules under the Inter-Cloud Replication management item. After deleting the rules, the configured inter-cloud replication rules will become invalid. The replicated data will be retained in the Target bucket, and the incremental data in the source bucket will no longer be replicated inter-cloud. If you need to use it again, you need to add the rules again.
Note:
- Inter-cloud replication operations that have not yet been completed will be aborted when inter-cloud replication is disabled and will not be able to continue.
- When you enable inter-cloud replication for a bucket again, inter-cloud replication is performed only on objects that were added after the enabling.