You can use cross-region replication (CRR) to migrate data from a bucket located in Region A to a bucket located in Region B. The two buckets must be owned by the same Alibaba Cloud account. To migrate data in a bucket located in Region A to another bucket located in the same region, you can use the same-region replication (SRR) feature.
Usage notes
Data migration starts three to five minutes after the CRR or SRR rule is configured.
CRR and SRR replicate data asynchronously (near real-time). Based on the amount of data, it may take several minutes to several hours to migrate the data.
When historical data is migrated, objects in the source bucket may overwrite objects in the destination bucket if these objects have the same names. To avoid data loss, we recommend that you enable versioning for the source and destination buckets. For more information about how to enable versioning for a bucket, see Configure versioning.
If you do not want to migrate incremental data in the source bucket after the data in the source bucket is migrated, you can disable the CRR or SRR rule. After the CRR or SRR rule is disabled, the migrated data is stored in the destination bucket, and the incremental data in the source bucket is not replicated to the destination bucket.
For more information about CRR, see Overview. For more information about SRR, see SRR overview.
Data migration between buckets in different regions
Assume that you want to migrate data from the source Bucket A in the China (Beijing) region to the destination Bucket B in the China (Hangzhou) region. Perform the following steps:
Log on to the OSS console.
In the left-side navigation pane, click Buckets. On the Buckets page, click Bucket A.
In the left-side navigation tree, choose .
On the Cross-Region Replication tab, click Cross-Region Replication.
In the Cross-Region Replication panel, configure the parameters described in the following table.
Parameter
Description and example
Source Bucket
The region and name of the source bucket are displayed. In this example, the region is China (Beijing) and the name is Bucket A.
Destination Bucket
Select a region and then the destination bucket. In this example, select China (Hangzhou) and Bucket B.
Objects to Replicate
Select Synchronize all files.
Replication Policy
Select Add/Change. OSS synchronizes the add and change operations on the source bucket to the destination bucket.
Replicate Historical Data
Select Yes.
Click OK.
The data replication progress is displayed on the Cross-Region Replication tab.
Data migration between buckets in the same region
Assume that you want to migrate data from the source Bucket C in the China (Beijing) region to the destination Bucket D in the same region. Perform the following steps:
Log on to the OSS console.
In the left-side navigation pane, click Buckets. On the Buckets page, click Bucket C.
In the left-side navigation tree, choose .
On the Same-Region Replication tab, click Same-Region Replication.
In the Same-Region Replication panel, configure the parameters described in the following table.
Parameter
Description and example
Source Bucket
The region and name of the source bucket are displayed. In this example, the region is China (Beijing) and the name is Bucket C.
Destination Bucket
Select a region and then the destination bucket. In this example, select China (Beijing) and Bucket D.
Objects to Replicate
Select Synchronize all files.
Replication Policy
Select Add/Change. OSS synchronizes the add and change operations on the source bucket to the destination bucket.
Replicate Historical Data
Select Yes.
Replicate Objects Encrypted based on KMS
Select No.
Click OK.
The data replication progress is displayed on the Same-Region Replication tab.
References
For more information about how to migrate data in buckets owned by different Alibaba Cloud accounts, see Use Data Online Migration to migrate data between accounts.