Updated on 2024-07-17 GMT+08:00

Preparing for Migration

Before using OMS to migrate data between OBS buckets, make preparations by referring to this section.

Registering a HUAWEI ID

Register a HUAWEI ID and enable Huawei Cloud services.

Real-name authentication is required for migrations to regions within the Chinese mainland.

Creating Access Keys for the Source and Destination Accounts and Obtaining the Required Permissions

  • Source (UCloud)
    • If you use a root account for migration, log in to the UCloud console, click the username in the right corner of the top navigation bar, and choose UAccount > API Keys to view or create an access key.
    • If you want to use a sub-account for migration, perform the following steps to create a sub-account, generate an AK/SK pair for the sub-account, and assign the UFileReadOnlyAccess permission to the sub-account.
      1. Log in to the UCloud console using a root account.
      2. On the top navigation bar, click the username and choose IAM > User Management.
      3. Click Invite Sub Account.

      4. Specify Access Mode, Email and Username, and click OK.
        • If you select API for Access Mode, an AK/SK pair will be automatically generated.
        • The sub-account can access the console using the email address. The username is the unique identifier of the sub-account under the root account.
      5. Assign permissions to the sun-account.

        Locate the sub-account and click Add Policy in the Operation column. In the displayed Add Policy dialog box, select an application project, select UFileReadOnlyAccess, and click Confirm.

      6. (Optional) Create an access key for the sub-account.

        Click Username to go to the user details page. In the API Keys area, click Create Key to generate an AK/SK pair.

  • Destination (Huawei Cloud): Create an AK/SK pair for the destination account and obtain the required permissions. For more information, see Creating an Access Key (AK/SK) and Destination Permissions.

Creating a Destination OBS Bucket

Create an OBS bucket for storing the migrated data. For details, see Creating a Bucket.

Restoring Archive Data in the Source Bucket

You need to restore data of the Archive storage class before you migrate it. Otherwise, the migration will take a long time. US3 provides the us3cli tool to restore archive files in batches. For details, see Restoring Archive Data on UCloud US3.

Perform the migration after all archive data is restored. Any data not restored will fail to be migrated.