You can use Alibaba Cloud Data Online Migration to migrate data from Bucket A owned
by Alibaba Cloud Account A to Bucket B owned by Alibaba Cloud Account B. The buckets
can be located in the same region or in different regions.
Prerequisites
- A Resource Access Management (RAM) user is created.
Create RAM User A by using Alibaba Cloud Account A and create RAM User B by using
Alibaba Cloud Account B. For more information, see Create a RAM user.
- An AccessKey pair is created.
Create an AccessKey pair for RAM User A and RAM User B respectively and save the AccessKey
pair information. For more information, see Create an AccessKey pair for a RAM user.
- The RAM users are granted related permissions.
Grant the AliyunOSSFullAccess
and AliyunMGWFullAccess
permissions to RAM User A and RAM User B. For more information, see Grant permissions to a RAM user.
Migrate data across Alibaba Cloud accounts and regions
Assume that you need to migrate data in Bucket A owned by Alibaba Cloud Account A
in the China (Shanghai) region to Bucket B owned by Alibaba Cloud Account B in the
China (Hangzhou) region by using the public endpoints of the buckets. Perform the
following steps:
Notice When you migrate data across different Alibaba Cloud accounts and regions, you can
use only the public endpoints of the source and destination buckets.
- Create a source data address.
- Log on to the Alibaba Cloud Data Transport console.
- In the left-side navigation pane, choose , and then click Create Data Address.
- In the Create Data Address panel, configure parameters. The following table describes the parameters.
Parameter |
Description and example |
Data Type |
Select OSS.
|
Data Region |
The region in which the source bucket is located. Select China (Shanghai).
|
Data Name |
Enter migrationtask1.
|
OSS Endpoint |
Select https://oss-cn-shanghai.aliyuncs.com. For more information about Object Storage Service (OSS) endpoints, see Regions and endpoints.
|
AccessKey Id |
Enter the AccessKey ID of the RAM User A. |
AccessKey Secret |
Enter the AccessKey secret of the RAM User A. |
OSS Bucket |
Select Bucket A. |
- Create a destination data address.
- In the left-side navigation pane, choose , and then click Create Data Address.
- In the Create Data Address panel, configure parameters. The following table describes the parameters.
Parameter |
Description and example |
Data Type |
Select OSS.
|
Data Region |
The region in which the destination bucket is located. Select China (Hangzhou).
|
Data Name |
Enter migrationtask2.
|
OSS Endpoint |
Select https://oss-cn-hangzhou.aliyuncs.com.
|
AccessKey Id |
Enter the AccessKey ID of the RAM User B. |
AccessKey Secret |
Enter the AccessKey secret of the RAM User B. |
OSS Bucket |
Select Bucket B. |
- Create a migration job.
- In the left-side navigation pane, choose . On the page that appears, click Create Job.
- In the Create Job panel, read the terms of the migration service and select I understand the above terms and conditions, and apply for opening data migration
service. Then, click Next.
- In the Fee Reminder dialog box, click Yes, Go Ahead.
- In the Create Job panel, configure parameters. The following table describes the parameters. Retain
the default value for other parameters, and then click Next.
Parameter |
Description and example |
Job Name |
Enter Task2.
|
Source Data Address |
Select the created source data address [oss]migrationtask1.
|
Destination Data Address |
Select the created destination data address [oss]migrationtask2.
|
Migration Type |
Select Full.
|
- On the Performance tab, navigate to the Data Prediction section and configure the Data Size and File Count parameters.
- On the Performance tab, navigate to the Flow Control section, specify the Time Range and Max Flow(MB/s) parameters, and then click Add.
- Click Create.
Migrate data across Alibaba Cloud accounts within the same region
Assume that you want to migrate data from Bucket A owned by Alibaba Cloud account
A in the China (Shanghai) region to Bucket B owned by Alibaba Cloud account B within
the same region by using the internal endpoints of the buckets. Perform the following
steps:
Note When you migrate data across different Alibaba Cloud accounts within the same region,
we recommend that you use the internal endpoints of the source and destination buckets.
If you use the public endpoints of the buckets, you are charged for the large amount
of outbound traffic generated over the Internet.
- Create a source data address.
- Log on to the Alibaba Cloud Data Transport console.
- In the left-side navigation pane, choose , and then click Create Data Address.
- In the Create Data Address panel, configure parameters. The following table describes the parameters.
Parameter |
Description and example |
Data Type |
Select OSS.
|
Data Region |
The region in which the source bucket is located. Select China (Shanghai).
|
Data Name |
Enter migrationtask1.
|
OSS Endpoint |
Select https://oss-cn-shanghai-internal.aliyuncs.com. For more information about OSS endpoints, see Regions and endpoints.
|
AccessKey Id |
Enter the AccessKey ID of RAM User A. |
AccessKey Secret |
Enter the AccessKey secret of RAM User A. |
OSS Bucket |
Select Bucket A. |
- Create a destination data address.
- In the left-side navigation pane, choose , and then click Create Data Address.
- In the Create Data Address panel, configure parameters. The following table describes the parameters.
Parameter |
Description and example |
Data Type |
Select OSS.
|
Data Region |
The region in which the destination bucket is located. Select China (Shanghai).
|
Data Name |
Enter migrationtask2.
|
OSS Endpoint |
Select https://oss-cn-shanghai-internal.aliyuncs.com.
|
AccessKey Id |
Enter the AccessKey ID of RAM User B. |
AccessKey Secret |
Enter the AccessKey secret of RAM User B. |
OSS Bucket |
Select Bucket B. |
- Create a migration job.
- In the left-side navigation pane, choose . On the page that appears, click Create Job.
- In the Create Job panel, read the terms of the migration service and select I understand the above terms and conditions, and apply for opening data migration
service. Then, click Next.
- In the Fee Reminder dialog box, click Yes, Go Ahead.
- In the Create Job panel, configure parameters. The following table describes the parameters. Retain
the default value for other parameters, and then click Next.
Parameter |
Description and example |
Job Name |
Enter Task2.
|
Source Data Address |
Select the created source data address [oss]migrationtask1.
|
Destination Data Address |
Select the created destination data address [oss]migrationtask2.
|
Migration Type |
Select Full.
|
- On the Performance tab, navigate to the Data Prediction section and configure the Data Size and File Count parameters.
- On the Performance tab, navigate to the Flow Control section, specify the Time Range and Max Flow(MB/s) parameters, and then click Add.
- Click Create.
References
-
Other scenarios for data migration across accounts
- Migrate specified data
The preceding scenario assumes that you migrated all the data in a bucket. You can
also migrate part of the data in a bucket. For example, to migrate objects whose names
contain a specific prefix, specify the prefix when you create data addresses.
- Migrate incremental data
If the source data is changed after full migration of the source bucket, you can specify
Migration Interval and Migration Times to perform incremental data migration. This
way, the incremental data in the source bucket is migrated from the source data address
to the destination data address.
- Select the operation performed on objects that have the same name
For objects that have the same name in the source data address and the destination
data address, you can specify File Overwrite Method to directly overwrite the destination
data or skip the objects. You can also specify File Overwrite Method to determine
whether to overwrite the destination data or skip the migration of the objects based
on the object metadata such as the last modified time, object sizes, and object Content-Type.
For more information about how to meet more requirements when you migrate data between
buckets in OSS, see Migrate data.
-
Migrate data within an account
For more information about how to migrate data within an Alibaba Cloud account, see
Use CRR or SRR to migrate OSS data owned by the same Alibaba Cloud account.