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 Cross-region replication. For more information about SRR, see Same-region replication.

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:

  1. Log on to the OSS console.
  2. In the left-side navigation pane, click Buckets. On the Buckets page, click Bucket A.
  3. In the left-side navigation pane, choose Redundancy for Fault Tolerance > Cross-Region Replication.
  4. In the Cross-Region Replication section, click Configure.
  5. Click Cross-Region Replication. In the Cross-Region Replication panel, configure the parameters described in the following table.
    Parameter Description and Example
    Source Region The region of Bucket A, which is the China (Beijing) region.
    Source Bucket The name of Bucket A.
    Destination Region Select the China (Hangzhou) region.
    Destination Bucket Select Bucket B.
    Applied To Select All Files in Source Bucket.
    Operations Select Add/Change.
    Replicate Historical Data Select Yes.
  6. Click OK.
    Then, the Cross-Region Replication page displays the data migration progress.

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:

  1. Log on to the OSS console.
  2. In the left-side navigation pane, click Buckets. On the Buckets page, click Bucket C.
  3. In the left-side navigation pane, choose Redundancy for Fault Tolerance > Same-Region Replication.
  4. In the Same-Region Replication section, click Configure.
  5. Click Same-Region Replication.
  6. In the Same-Region Replication panel, configure the parameters described in the following table.
    Parameter Description and Example
    Source Region The region of Bucket C, which is the China (Beijing) region.
    Source Bucket The name of Bucket C.
    Destination Bucket Select Bucket D.
    Applied To Select All Files in Source Bucket.
    Operations Select Add/Change.
    Replicate Historical Data Select Yes.
  7. Click OK.
    Then, the Same-Region Replication page displays the data migration progress.

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 OSS buckets.