You can manually download data backup sets or log backup sets that are generated by Data Disaster Recovery. This way, you can archive the backup data and restore the data to your on-premises device based on your business requirements. This topic describes how to manually download a backup set.
Billing
You are not charged for network traffic when you download backup sets.
If you use a third-party download tool to download backup sets, additional download traffic may be generated. As a result, you may be charged additional fees. Proceed with caution.
Usage notes
The URL that is used to download a backup set is valid for two days. You must download the backup set within two days after you obtain the URL. The URL is invalid and cannot be used after two days.
You must download a backup set within its retention period. If the backup set expires during the download, the download task fails.
Procedure
- Log on to the DMS console V5.0.
In the top navigation bar, choose
.NoteIf you use the DMS console in simple mode, move the pointer over the
icon in the upper-left corner of the DMS console and choose .
In the top navigation bar, select a region and click the ID of the data source to go to the Data Source Details page.
Alibaba Cloud databases: On the Backup Data page, click the Logical Backup tab, find the backup set that you want to download, and then click Download in the Actions column.
Self-managed databases hosted on Elastic Compute Service (ECS) instances, on-premises databases, and third-party cloud databases (automatically backed up): On the Data Backup tab, find the backup set that you want to download and click Download in the Actions column.
NoteData Disaster Recovery automatically packages, compresses, and converts the backup set to a downloadable file. In addition, you are navigated to the Download Task tab of the Task Management page.
After the status of the download task changes to Complete, click Download in the Actions column.
A downloaded data backup set is in the CSV format. A downloaded log backup set is in the native format.
In the message that appears, click Download. You can also copy the internal or public URL of the backup set to download the backup set as required.
After the download is complete, decompress the downloaded package. By default, the backup set is compressed in the
<Download task ID>.tar.gz
package.Run the following commands to decompress the downloaded package:
Run the
gzip -d <Download task ID>.tar.gz
command to obtain the<Download task ID>.tar
file.Run the
file <Download task ID>.tar
command to view the file format after the gzip command is run:If the file format is
POSIX tar archive
, run thetar xvf <Download task ID>.tar
command to obtain the<Download task ID>
file.If the file format is
Zip archive data, at least v2.0 to extract
, run theunzip <Download task ID>.tar
command to obtain the<Download task ID>
file.
Optional. If an XB file exists after you perform the preceding steps, you must download the tool and run the following commands to decompress the file.
Windows
Run the
xbunpack.exe -file=<Download task ID>.xb -dir=<Destination storage directory>
command to decompress the file.Linux
Method 1: Run the
xbunpack -file=<Download task ID>.xb -dir=<Destination storage directory>
command to decompress the file.Method 2: Run the
cat <Download task ID>.xb | ./xbunpack -dir=<Destination storage directory>
command to decompress the file.
Download xbunpack.exe for Windows or xbunpack for Linux.