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.
- The source platform account needs the following 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
- Log in to the management console and enter the Object Storage Migration Service page.
- In the navigation pane on the left, choose Synchronization Task.
- In the upper right corner, click Create Synchronization Task.
- Read the privacy statement, select Agree to the above privacy agreements, and click OK.
- 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.
- Select the region where the source bucket resides from the Select Region drop-down list.
- In the Bucket Name or Path text box, enter the source bucket name or the source bucket path with the bucket name.
- 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.)
- 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.
- 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.
- Click Next to set task parameters. For details about the parameters, see Table 4.
- 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.
- 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.
Last Article: Synchronization Tasks
Next Article: Configuring a Synchronization Request on the Source Platform
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.