This topic describes how to prepare for a migration job.

FTP server

Estimate the size and the number of files that you want to migrate. You can log on to the Linux-based FTP server to view the amount and the number of files that you want to migrate.
Note Only a root user with administrator permissions can execute the following commands.
  1. Log on to the Linux-based FTP server and run the following command as a root user:

    ftp <ftp_server_ip>

    Enter the username and password.

  2. Run the following commands to view the size and the number of files that you want to migrate:

    Size of files: du -sh <directory_path>

    Number of files: find &lt;directory_path> -type f | wc -l

    Examples:
    [root@ixxx /]# du -sh /root/a/b/c
    181M   /root/a/b/c
    [root@ixxx /]# find /root/a/b/c -type f | wc -l
    38
Note To make sure that your data can be migrated as expected, you must enter an appropriate size and an appropriate number of files when you create a migration job.

Alibaba Cloud OSS

  • Create a destination OSS bucket.

    Create a destination bucket to store the migrated data. For more information, see Create buckets.

  • Create a RAM user and grant required permissions to the RAM user.
    1. Log on to the Resource Access Management (RAM) console.
    2. In the left-side navigation pane, choose Identities > Users.
    3. On the Users page, click Create User.
    4. On the Create User page, specify the Logon Name and Display Name parameters in the User Account Information section.
    5. In the Access Mode section, select Console Access and OpenAPI Access. Then, save the generated logon name, password, AccessKey ID, and AccessKey secret.
      1. Console Access: If you select this check box, you must configure the console password, password reset settings, and multi-factor authentication settings.
      2. OpenAPI Access: If you select this check box, an AccessKey pair is automatically created for the RAM user. The RAM user can call API operations or use other development tools to access Alibaba Cloud resources.
    6. After the RAM user is created, return to the Users page. Find the RAM user and click Add Permissions in the Actions column. In the panel that appears, select the AliyunOSSFullAccess and AliyunMGWFullAccess policies and click OK. This way, the RAM user is granted the read and write permissions on OSS buckets and the permissions to perform online data migrations.
    7. In the left-side navigation pane, click Overview.
    8. On the page that appears, navigate to the Account Management section and click the link under RAM user logon. On the page that appears, enter the logon name and password of the RAM user to log on to the Alibaba Cloud Management Console.