- What's New
- Function Overview
- Service Overview
- Getting Started
- User Guide
-
Best Practices
- Overview
- Automatically Checking for and Retrying Failed Migration Tasks
- Best Practices for Service Cutover
- Special Migration Scenarios
-
Migration from Other Clouds to Huawei Cloud
- Migrating Data Between Huawei Cloud OBS Buckets
- Migrating Data from Huawei Cloud PFS to Huawei Cloud OBS or Between PFS Systems
- Migrating Data from Alibaba Cloud OSS to Huawei Cloud OBS
- Migrating Data from Tencent Cloud COS to Huawei Cloud OBS
- Migrating Data from UCloud US3 to Huawei Cloud OBS
- Migrating Data from Kingsoft Cloud KS3 to Huawei Cloud OBS
- Migrating Data from QingCloud QingStor to Huawei Cloud OBS
- Migrating Data from Google Cloud Storage to Huawei Cloud OBS
- Migrating Data from Amazon S3 to Huawei Cloud OBS
- Migrating Data from Azure Blob Storage to Huawei Cloud OBS
- Migrating Data from HTTP/HTTPS Sources to Huawei Cloud OBS
- Configuring Synchronization Requests on Source Platforms
-
Migrating Archived Data
- Migrating Archived Data in Huawei Cloud OBS
- Migrating Archived Data in Alibaba Cloud OSS
- Migrating Archived Data in Tencent Cloud COS
- Migrating Archived Data in Kingsoft Cloud KS3
- Migrating Archived Data in UCloud US3
- Migrating Archived Data in Amazon S3
- Migrating Archived Data in Azure Blob Storage
- Other Migration Scenarios
- Change History
-
API Reference
- Before You Start
- API Overview
- Calling APIs
- Getting Started
- APIs V2 (Recommended)
-
Out-of-Date APIs
- Querying the API Version
- Creating a Migration Task
- Deleting a Migration Task
- Restarting a Migration Task
- Stopping a Migration Task
- Modifying a Traffic Limiting Rule
- Querying All Migration Tasks of a Tenant
- Querying the Total Number of Migration Tasks of a Tenant
- Querying Migration Tasks by Task IDs
- Querying Quotas of a Tenant
- Appendix
- Change History
- SDK Reference
-
FAQs
- Question Summary
-
Product Consulting
- When Do I Need to Perform Pre-migration Evaluation Before Creating Migration Tasks?
- How Do I Migrate OBS Bucket Data from One Region to Another?
- How Do I Migrate the OBS Bucket Data from One Account to Another?
- How Do I Migrate Data from Multiple Source Buckets to a Single OBS Bucket on Huawei Cloud?
- How Do I Migrate Data in the Root Directory?
- How Does Migration Affect My Source Data? What Are the Impacts on Migration If the Source Data Changes?
- How Do I Change the Storage Path of a Migrated Object?
- How Does OMS Ensure Data Consistency If Data Is Continuously Written to OBS?
- How Do I Obtain Required Permissions for the Source and Destination Platform Accounts?
- How Do I Review the Objects Migrated in a Migration Task?
- How Do I Review the Objects Migrated in a Migration Task Group?
- How Do I Review the Objects Migrated in a Synchronization Task?
- Can I Migrate Data in a Specified Period Using a Synchronization Task?
- Can OMS Only Migrate the Data Generated After a Specified Time?
- Can OMS Filter the Data to Be Migrated by Suffix?
- Does OMS Support Batch Bucket Migration?
- What Is the Storage Class of Archive Data Migrated to the Archive Destination Bucket?
- What Are the Application Scenarios of Migration Tasks and Migration Task Groups?
- If I Delete an Object from the Source Bucket, Will the Corresponding Object in the Destination Bucket Be Deleted?
- How Does OMS Ensure Data Consistency Between the Source and Destination Buckets?
- Why Is the Total Number or Size of Objects in the Destination Bucket Inconsistent with Those in the Source Bucket After the Migration?
- How Does Migration Affect Data in the Destination Bucket?
- Why Are the Migration Progress and the Transmitted Data Volume 0 After the Migration Is Complete?
- How Do I Choose Storage Classes?
-
Migration Constraints
- What Are the Constraints on Migrating Data to a Parallel File System with OMS?
- What Are the Restrictions on Migrating Data in a Parallel File System?
- How Do I Fix the Error "Destination bucket must be in the same region as OMS. Select a bucket that is located in region xxx, or change the OMS region to xxx" When I Create a Migration Task?
- How Do I Migrate Data from a Cloud Platform Not Supported by OMS?
-
Migration Duration
- How Can I Learn the Speed of a Migration Task?
- Why Is the Migration Progress Not Changing Even Though the Transferred Volume Is Increasing?
- Why Is the Migration Speed Slow Sometimes?
- What Can I Do If the Migration Speed Is Slow and a Large Number of Objects Failed to Be Migrated During a Cross-Region Migration on Huawei Cloud?
-
Exception Recovery
- What Can I Do If Migration Tasks Fail To Be Created After Evaluation?
- What Can I Do If the Migration Fails Because the Frequency of Accessing the Source Object Storage Exceeded the Upper Limit?
- What Can I Do If a Migration Task Fails?
- What Can I Do If a Migration Task Group Fails to Be Executed?
- What Can I Do If SMN Is Not Working Properly?
- What Can I Do If a Migration Task Fails Due to Inconsistent Encryption Status?
- What Can I Do If the Migration Task Failed Due to an Archive Data Read Failure?
- What Problems May I Encounter If CDN Is Enabled at the Source?
- What Do I Do If All Objects Whose Names Contain Slashes (/) Fail to be Migrated from Alibaba Cloud?
- How Do I Resolve the Error "Failed to access the object. Make sure that the object exists and you have the rights to access" When I Enter Object Prefixes?
- What Can I Do If Consistency Checks Fail During the Migration of Data in a Parallel File System?
- What Can I Do If the Migration Failed Because the Objects Cannot Be Downloaded from the Source Bucket?
- What Can I Do If a Migration Task Failed Due to Transmission Interruptions?
- Change History
- Videos
- General Reference
Show all
Copied.
Migrating Archived Data in Alibaba Cloud OSS
Alibaba Cloud OSS provides the ossutil tool that allows you to specify a prefix to restore the objects whose names start with the prefix.
ossutil is compatible with Windows, Linux, and macOS. Download and install the required version.
This section uses Windows as an example.
Procedure
- Download the ossutil tool.
- Decompress the installation package and double-click ossutil.bat.
- Run the following command to generate a configuration file:
<decompression-path>\ossutil& >ossutil64.exe config
- Configure the generated file in interactive mode.
- Run the following config command:
./ossutil64 config
- Configure the path of the configuration file as prompted.
You are advised to press Enter to use the default path of the configuration file.
- Configure the interface language of ossutil as prompted.
Enter CH or EN. By default, the interface of ossutil is using the same language as the operating system. This configuration takes effect after you run the config command.
- Follow the prompts to configure parameters Endpoint, AccessKey ID, AccessKey Secret, and STSToken.
Parameter description:
- Endpoint: specifies the endpoint of the region in which your source bucket is located. You can also add http:// or https:// to the endpoint to specify that you want ossutil to use to OSS. The default protocol is HTTP. For example, if you want to access an OSS bucket in the China (Shenzhen) region by using HTTPS, set the endpoint to https://oss-cn-shenzhen.aliyuncs.com.
- AccessKey ID and AccessKey Secret: specify the access key pair of your Alibaba Cloud account.
- stsToken: This parameter is required only when you use temporary access credentials to access an OSS bucket.
Example:
./ossutil64 config Enter the name configuration file name. The file name can contain a path. The default path is /home/user/.ossutilconfig. If you press the Enter key without specifying a different path, the file is generated in the default path. If you want to generate the file in another path, set the -config-file option to the path when you run this command. If you do not specify the configuration file path, the default configuration file /home/user/.ossutilconfig is used. If you press the Enter key without configuring the following parameters, these parameters are ignored. To obtain more information about the parameters, run the help config command. Enter the endpoint: Enter the AccessKey ID: Enter the AccessKey Secret: Enter the STS Token:
- Run the following config command:
- Run the restore command to restore archive files.
Command syntax:
<binary-name> restore oss://<bucket-name>[/prefix][local_xml_file] [--encoding-type <value>] [--payer <value>] [--version-id <value>] [-r, --recursive] [-f, --force] [--retry-times <value>] [-j, --job <value>]
CAUTION:
The binary name at the beginning of the command line needs to be replaced based on the operating system. For example, replace the binary name with ./ossutil64 in a 64-bit Linux operating system. For details, see Getting Started with Alibaba Cloud OSS ossutil.
The following table describes the parameters you can configure to run the restore command.
Parameter
Description
bucketname
The name of the bucket in which the objects to restore are stored.
prefix
The prefixes that are used to filter objects in the bucket.
local_xml_file
The local XML file used to store parameters that you can configure to restore archive objects.
--encoding-type
The method that is used to encode the value of the prefix parameter. The valid value is url.
If you do not specify this parameter, the value of the prefix parameter is not encoded.
--payer
The payer of the traffic and request fees incurred when the command is run.
To enable the requester to pay the traffic and request fees for accessing the resources in the specific path, set this parameter to requester.
--version-id
The version ID of the object that you want to restore. This parameter applies only to objects in buckets for which versioning is enabled or suspended.
-r, --recursive
If you specify this parameter, ossutil restores all objects whose names contain the specified prefix in the bucket.
If you do not specify this parameter, ossutil restores only the specified object.
-f, --force
The operation that is forcibly performed without prompts.
--retry-times
The number of retries after the command fails to be run. The default value is 10. The value ranges from 1 to 500.
-j, --job
The number of concurrent tasks performed across multiple objects. The default value is 3. The value ranges from 1 to 10,000.
For details, see the documents related to Alibaba Cloud OSS restore.
- Migrate restored data by referring to Migrating Data from Alibaba Cloud OSS to Huawei Cloud OBS.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot