You can manually download a backup set to restore it to an on-premises database, perform analysis and auditing in Excel, or back it up to local storage. This topic describes how to manually download a backup set.
Limits and format description
To ensure a successful download, check the expiration date of the backup set before you start. The download process takes time. If the backup set is about to expire, extend its retention period to prevent it from being automatically deleted during the download. After the download is complete, you can change the retention period back to the original setting. For more information, see Modify the lifecycle of a backup schedule.
Limitations | Logical backup | Physical backup |
Backup destination storage class | Only DBS Storage is supported. User-owned Object Storage Service (OSS) buckets are not supported. | Only DBS Storage is supported. User-owned OSS buckets are not supported. |
Full data | The following database engines are supported:
Note MongoDB data is in the | The following database engines are supported:
Note
|
Incremental data | The following database engine is supported: MySQL. Note Data is in the native MySQL format. | The following database engines are supported:
Note The data format is the same as the format for full data. |
Pricing
Downloading backup sets is currently free of charge.
Procedure
Log on to Data Management (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 . Find the backup schedule that you want to manage and click the schedule ID or Manage in the Actions column.

In the navigation pane on the left, choose .
NoteIf your database engine supports downloading incremental backup data and you have enabled incremental log backup for the backup instance, you can also download incremental log backup sets.
Downloading an Transaction Log Backup set is similar to downloading a Full Data set. To do so, go to .
Click Download in the Actions column for the desired Backup Set ID.
In the dialog box that appears, click OK.
After you click OK, the system packages, compresses, and converts the backup set into a downloadable file. You are then redirected to the Backup Set Download product page.
NoteThe time required for compression and conversion depends on the size of the backup file. Larger files take longer. For reference, a 150 GB file takes about 4 hours to process.
When the Status of the download task changes to Completed, click Download.
In the panel that appears, select your preferred download method.
I see. Downloads: Click this button to start the download in your browser.
Copy Public URL
Windows
Open a browser, paste the copied URL in the address bar, and press Enter to download the file.
Linux
Download command:
wget "<Copied download link>" -O <Download task ID>.zipExample:
wget "https://dbs-backup-137***50-cn-hangzhou-ubj5***gisz.oss-cn-hangzhou.aliyuncs.com/shsw*****lIAA%3D" -O vf0x****ilo4.zip
Copy Internal URL
Windows
Open a browser, paste the copied URL in the address bar, and press Enter to download the file.
Linux
Download command:
wget "<Copied download link>" -O <Download task ID>.zipExample:
wget "https://dbs-backup-137***50-cn-hangzhou-ubj5***gisz.oss-cn-hangzhou.aliyuncs.com/shsw*****lIAA%3D" -O vf0x****ilo4.zip
(Optional) After the download is complete, follow these steps to decompress the file if needed.
Downloaded file is in ZIP format
The decompression command is as follows:
Run the
unzip <Download task ID>.zipcommand.If your database contains a large amount of duplicate data or a large volume of data, the
error: invalid zip file with overlapped components (possible zip bomb)error may occur during decompression. If this happens, set theUNZIP_DISABLE_ZIPBOMB_DETECTION=TRUEenvironment variable. For example:UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE unzip 1iyq***m42.zip.NoteOn a Windows operating system, you can decompress the file directly.
Optional: If you obtain a file with the .xb extension after the preceding steps, download the corresponding tool and run the following command to decompress the file.
To obtain the tool, click xbunpack.exe (for Windows) or xbunpack (for Linux).
Windows
Run the
xbunpack.exe -file=<Download task ID>.xb -dir=/<Decompression destination folder>command to obtain the decompressed file.Linux
Method 1: Run the
xbunpack -file=<Download task ID>.xb -dir=/<Decompression destination folder>command to obtain the decompressed file.Method 2: Run the
cat <Download task ID>.xb | ./xbunpack -dir=/<Decompression destination folder>command to obtain the decompressed file.NoteThe
xbunpacktool requires executable permissions. You can run thechmod +x xbunpackcommand to grant the permissions.
Download file format:
tar.gzRun the
gzip -d <Download task ID>.tar.gzcommand to obtain the<Download task ID>.tarfile.NoteOn a Windows operating system, you can decompress the file directly.
Run the
file <Download task ID>.tarcommand to check the format of the resulting file:If the file format is
POSIX tar archive, run thetar xvf <Download task ID>.tarcommand to obtain the file.If the file format is
Zip archive data, at least v2.0 to extract, run theunzip <Download task ID>.tarcommand to obtain the file.If the file format is
data, run theunzip <Download task ID>.tarcommand to obtain the<Download task ID>file.
Optional: If you obtain a file with the .xb extension after the preceding steps, download the corresponding tool and run the following command to decompress the file.
Windows
Run the
xbunpack.exe -file=<Download task ID>.xb -dir=/<Decompression destination folder>command to obtain the decompressed file.Linux
NoteThe downloaded
xbunpacktool requires executable permissions. You can run thechmod +x xbunpackcommand to grant the permissions.Method 1: Run the
./xbunpack -file=<Download task ID>.xb -dir=/<Decompression destination folder>command to obtain the decompressed file.Method 2: Run the
cat <Download task ID>.xb | ./xbunpack -dir=/<Decompression destination folder>command to obtain the decompressed file.
To obtain the tool, click xbunpack.exe (for Windows) or xbunpack (for Linux).
Downloaded file is in tar.zst format
The decompression command is as follows:
# Decompress <archive_file_name>.tar.zst to <decompression_destination_path> # zstd: -d=decompress, -c=output to stdout # tar: -x=extract, -v=verbose, -f-=read from stdin, -C=specify target directory zstd -d -c <archive_file_name>.tar.zst | tar -xvf - -C <decompression_destination_path>NoteWindows does not natively support the
zstdcommand-line tool. You can use tools such as 7-Zip with the zstd plugin or PeaZip to decompress the file. To use the command line on other operating systems such as Linux or macOS, installzstdbased on your operating system:macOS (using Homebrew):
brew install zstdCentOS/RHEL:
sudo yum install zstdUbuntu/Debian:
sudo apt install zstd
Optional: If you obtain a file with the .xb extension after the preceding steps, download the corresponding tool and run the following command to decompress the file.
To obtain the tool, click xbunpack.exe (for Windows) or xbunpack (for Linux).
Windows
Run the
xbunpack.exe -file=<Download task ID>.xb -dir=/<Decompression destination folder>command to obtain the decompressed file.Linux
Method 1: Run the
xbunpack -file=<Download task ID>.xb -dir=/<Decompression destination folder>command to obtain the decompressed file.Method 2: Run the
cat <Download task ID>.xb | ./xbunpack -dir=/<Decompression destination folder>command to obtain the decompressed file.NoteThe
xbunpacktool requires executable permissions. You can run thechmod +x xbunpackcommand to grant the permissions.