This topic describes what you need to prepare before migration.
Network resources
- Estimate the amount of data to be migrated.
Estimate the size and number of files to be migrated.Note To ensure a successful migration, you must enter an appropriate size and number of files when creating a migration job.
- Load network resources
- Create an on-premises list file.
The list file has two columns.
- The first column includes a list of HTTP/HTTPS URLs. The migration service uses the HTTP GET method to download a file from an HTTP/HTTPS URL and the HTTP HEAD method to obtain metadata of a file.
- The second column includes a list of file names. After a file is migrated, the name
of the corresponding object consists of a prefix and the file name. Separate two columns
with a tab (
\t
).
Notice You must specify a file rather than a file folder in a list file.\n
).For example, the content of a list file named list.txt is as follows:
http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/docs/my.doc docs/my.doc http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/pics/my.jpg pics/my.jpg
Notice If a file name includes special characters or Chinese characters, you must perform URL encoding.- If a file name includes special characters, such as spaces and tabs (\t), you must
encode the URL and file name. For example, a file is named #¥.jpg. After the file name is encoded, it is displayed as #%EF%BF%A5.jpg. You need to specify the URL and file name in a list file as follows:
http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/pics/#%EF%BF%A5.jpg pics/#%EF%BF%A5.jpg
- If a file name includes Chinese characters, you must encode the URL and keep the file
name. For example, a file is named <a Chinese file name>.jpg. After the file name is encoded, it is displayed as %e5%9b%be%e7%89%87.jpg. You need to specify the URL and file name in a list file as follows:
http://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/pics/%e5%9b%be%e7%89%87.jpg pics/<a Chinese file name>.jpg
- Upload the list file to OSS.
The path of the list file is
oss://{bucket}/{the name of the list file}
.
- Create an on-premises list file.
Alibaba Cloud Object Storage Service (OSS)
- Create an OSS bucket
Create a destination OSS bucket to store the migrated data. For more information, see Create a bucket.
- Create and authorize a RAM user
- Log on to the RAM console.
- Choose .
- Select Console Password Logon and Programmatic Access, and then enter the required RAM user information.
- Click OK to save the generated RAM username, password, AccessKey ID, and AccessKey Secret.
- Find the RAM user, and click Add Permissions to grant the OSS read/write permission (AliyunOSSFullAccess) and Data Transport management
permission (AliyunMGWFullAccess) to the RAM user. The following figure shows the authorization
page.
- In the left-side navigation pane, select Overview, click the link in the RAM user logon section, and enter the username and password of the new RAM user to log on to the
console.