Creating a Synchronization Task

Scenarios

Enter the AKs and SKs for accessing the source and destination buckets, and configure the synchronization task parameters for migrating source objects contained in the synchronization request and viewing the task details.

The synchronization task feature is available only in CN North-Beijing4 and CN East-Shanghai1.

Prerequisites

  • You have obtained the AK/SK pairs and required permissions for the source and destination platform accounts.
    • The source platform account needs the following permissions:
      • Listing all buckets
      • Obtaining bucket location
      • Listing objects
      • Obtaining object metadata
      • Obtaining object content

      For details about how to obtain these permissions, see Source Permissions.

    • The destination platform account needs the following permissions:
      • Listing all buckets
      • Obtaining bucket location
      • Listing objects
      • Obtaining object metadata
      • Obtaining object content
      • Listing uploaded parts
      • Restoring archive objects

      For details about how to obtain these permissions, see Destination Permissions.

  • You have created at least one bucket on OBS.
  • You have created less than 5,000 migration tasks during the past 24 hours.
  • You have less than 5,000 migration tasks in the Waiting to migrate state.
  • You have less than 5 synchronization tasks in the Synchronizing state.
  • You have registered an account with HUAWEI CLOUD and completed real-name authentication.

Procedure

  1. Log in to the management console and enter the Object Storage Migration Service page.
  2. In the navigation pane on the left, choose Synchronization Task.
  3. In the upper right corner, click Create Synchronization Task.
  4. Read the privacy statement, select Agree to the above privacy agreements, and click OK.
  5. For step Select Source/Destination, you need to:

    1. Select the source platform. For details about the parameters, see Table 1.
    Table 1 Source platform parameters

    Parameter

    Description

    Data Source

    Specifies the source cloud service provider. The following options are available:

    • HUAWEI CLOUD
    • AWS China
    • Alibaba Cloud
    • Microsoft Azure
    • Tencent Cloud
    • Qiniu Cloud
    • QingCloud
    • Baidu Cloud
    • Kingsoft Cloud
    • UCloud

    appID

    Specifies the identifier of the account for logging in to the Tencent Cloud console. If the selected cloud service provider is Tencent Cloud, appID must be specified.

    Access Key

    Specifies the AK of the source platform account. Enter a maximum of 100 characters.

    Secret Access Key

    Specifies the SK of the source platform account. The SK matches with the AK. Enter a maximum of 100 characters.

    Specify Bucket Name

    If you do not have the permissions required to list buckets but have the permissions to list objects in buckets, obtain object metadata, and obtain objects, enable this parameter to specify the path of the source bucket for the migration.

    For details, see Table 2.

    Table 2 Description of Specify Bucket Name

    If You Need to...

    Then...

    Enable Specify Bucket Name.

    1. Select the region where the source bucket resides from the Select Region drop-down list.
    2. In the Bucket Name or Path text box, enter the source bucket name or the source bucket path with the bucket name.
    3. Click Connect to Source Bucket.

      OMS will check whether the source platform information is correct. If the entered information is correct, a message is displayed indicating that the source bucket is connected.

    Disable Specify Bucket Name (This feature is disabled by default.)

    1. Click Connect to Source Bucket.

      OMS will check whether the source platform information is correct. If the entered information is correct and your account has the permissions needed to list buckets, all buckets are listed in the Bucket drop-down list.

    2. In the Bucket drop-down list, select the bucket where the objects to be migrated reside.
    2. Select the destination platform. For details about the parameters, see Table 3.
    Table 3 Destination platform parameters

    Parameter

    Description

    Access Key

    Specifies the AK for accessing HUAWEI CLOUD. Enter a maximum of 100 characters.

    Secret Access Key

    Specifies the SK for accessing HUAWEI CLOUD. The SK matches with the AK. Enter a maximum of 100 characters.

    After entering the AK and SK, click Connect to Destination Bucket.

    Bucket

    Specifies the destination OBS bucket for storing the migrated data.

  6. Click Next to set task parameters. For details about the parameters, see Table 4.

    Table 4 Task parameters

    Parameter

    Description

    Data Encryption

    If you select KMS, migrated data is encrypted before being transferred to the destination OBS buckets.

    NOTE:

    Using KMS to encrypt migrated data may decrease the migration speed by about 10%.

    This option is only available if KMS encryption is supported in the current region.

    Archive Data Restoration

    Only restored archive data can be migrated. You can select this option if your source cloud service provider supports automatic restoration of archive data.

    • If you select this option, the system automatically restores and migrates archive objects in the migration task. If an archive object fails to be restored, the system records it in the list of objects that failed to be migrated and continues to migrate other objects in the migration task.

      If you do not select this option, the system directly records archive objects in the list of objects that failed to be migrated and continues to migrate other objects in the migration task.

      NOTE:
      • Currently, the following cloud service providers can automatically restore archive objects: HUAWEI CLOUD, Alibaba Cloud, Kingsoft Cloud, and Tencent Cloud.
      • It takes at least a minute to restore an archive object. The larger the archive object is, the longer it takes to restore it, but if an archive object cannot be restored within three minutes, the restoration fails. The time needed depends on the cloud service provider. For details, see related documents of the specific cloud service provider.
      • Two types of fees are generated during archive data restoration: fees for API calls and fees for archive object restoration. These fees are billed by the source cloud service provider.
      • After restoration, archive objects will be in restored state for a certain period of time. During this period, objects can be downloaded or read. After this period expires, archive objects need to be restored again for migration. For details about how long they stay in the restored state, see related documents from the cloud service provider.
      • After objects are migrated from the source platform to HUAWEI CLOUD, the storage class of the migrated objects is the same as that of the destination bucket.

  7. Click Next to enter the confirmation page.

    Confirm the settings of the synchronization task and start the synchronization.

    1. Check whether the settings of synchronization parameters are correct.

    If the settings are incorrect, click Previous to return to the previous page for modification.

    2. Click Synchronize Now.

    A message is displayed indicating that the task has been submitted. Switch back to the synchronization task list to view the task.

    For details about task statuses, see Table 5.

    Table 5 Synchronization task statuses

    Status

    Description

    Synchronizing

    Indicates that the objects in the source bucket are being synchronized.

    NOTE:

    After you create a synchronization task, the task status is Synchronizing, which indicates means that the synchronization request from the source bucket can be received and the source objects can be synchronized. You need to configure a synchronization request on the source platform to migrate newly added or modified objects in the source bucket. For more details, see Configuring a Synchronization Request on the Source Platform. After the configuration, OMS will synchronize your source objects.

    Paused

    Indicates that the synchronization of source objects is paused.

    NOTE:

    If you want to pause a synchronization task, you are advised to stop writing data to the source bucket and wait for 15 minutes before clicking Pause on the synchronization task page. Otherwise, it may cause a migration failure for some objects covered by the received synchronization requests.

  8. Restart, pause, or delete the synchronization task.

    • Restarting
    • Only synchronization tasks in the Paused state can be restarted.
    • For security purposes, the system does not save your personal data. When you restart the synchronization task, you need to enter the AKs and SKs for accessing the source and destination buckets again to complete identity authentication.
    • Pausing
    • Only synchronization tasks in the Synchronizing state can be paused.
    • If you want to pause a synchronization task, you are advised to stop writing data to the source bucket and wait for 15 minutes before clicking Pause on the synchronization task page. Otherwise, it may cause a migration failure for some objects covered by the received synchronization requests.
    • Deleting
    • Only synchronization tasks in the Paused state can be deleted.