Data Disaster Recovery (DBS) allows you to download data and log backup sets. You can archive the backup sets locally or use them to restore data to an on-premises database. This topic describes how to manually download a backup set.
Billing
Downloading backup sets is currently free. You are not charged for network traffic.
Using third-party tools to download backup sets may generate additional network traffic and incur extra charges.
Usage notes
-
A download link for a backup set is valid for two days. You must download the backup set before the link expires. Expired links will not work.
-
You must complete the download within the retention period of the backup set. If the backup set expires during the download, the task fails.
Procedure
Log in to DMS 5.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 . -
At the top of the page, select a region. Then, click the ID of the target data source to go to its details page.
-
For Alibaba Cloud databases: On the . Find the target data or log backup set and click Download in the Actions column.
-
For self-managed databases on ECS, on-premises databases, or third-party cloud databases (with automatic backup): On the Backup Data page, find the target data or log backup set and click Download in the Actions column.
NoteThe system packs, compresses, and converts the backup files into a downloadable format, then redirects you to the Download Task tab on the Task Management page.
-
-
When the Status of the download task changes to Complete, click Download.
Downloaded data backups are in CSV format. Downloaded log backups are in the native format of the database.
-
In the dialog box that appears, click Acknowledge and Download. Alternatively, use the public or internal address to download the backup set.
-
After the download is complete, decompress the downloaded package. By default, the backup set is compressed in the
<Download task ID>.tar.gzpackage.Run the following commands to decompress the downloaded package:
-
Run the
gzip -d <Download task ID>.tar.gzcommand to obtain the<Download task ID>.tarfile. -
Run the
file <Download task ID>.tarcommand 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>.tarcommand 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>.tarcommand 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.
-
-