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 CRR. For more information about SRR, see SRR.

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 tree, choose Data Management > Cross-Region Replication.
  4. On the Cross-Region Replication tab, click Cross-Region Replication.
  5. In the Cross-Region Replication panel, configure the parameters. The following table describes the parameters.
    ParameterDescription and Example
    Source RegionThe region of Bucket A, which is the China (Beijing) region.
    Source BucketThe name of Bucket A.
    Destination RegionThe China (Hangzhou) region.
    Destination BucketBucket B.
    Applied ToAll Files in Source Bucket.
    OperationsAdd/Change. OSS synchronizes the add and change operations on the source bucket to the destination bucket.
    Replicate Historical DataYes.
  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 tree, choose Data Management > Same-Region Replication.
  4. On the Same-Region Replication tab, click Same-Region Replication.
  5. Click Same-Region Replication.
  6. In the Same-Region Replication panel, configure the parameters. The following table describes the parameters.
    ParameterDescription and Example
    Source RegionThe region of Bucket C, which is the China (Beijing) region.
    Source BucketThe name of Bucket C.
    Destination BucketBucket D.
    Applied ToAll Files in Source Bucket.
    OperationsSelect Add/Change. OSS synchronizes the add and change operations on the source bucket to the destination bucket.
    Replicate Historical DataYes.
  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 accounts.