You can manually download a backup set to restore it to an on-premises database, perform analysis and auditing, or back it up to local storage.
Limitations and formats
To ensure a successful download, check the expiration date of the target backup set before you begin. The download process takes time. If the backup set is about to expire, extend its retention period to prevent the data from being automatically deleted during the download. You can revert the retention period after the download is complete. For more information, see Modify the backup lifecycle.
|
Item |
Logical backup |
Physical backup |
|
Backup storage type |
Only DBS built-in storage is supported. User-owned Object Storage Service (OSS) buckets are not supported. |
Only DBS built-in storage is supported. User-owned Object Storage Service (OSS) buckets are not supported. |
|
Full data |
The following database engines are supported:
Note
MongoDB data is in |
The following database engines are supported:
Note
|
|
Incremental data |
The following database engine is supported: MySQL. Note
The data is in the native MySQL format. |
The following database engines are supported:
Note
The data format is the same as that of a full data backup. |
Billing
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 target backup schedule and click its ID or click Manage in the Manage column.
-
In the left-side navigation pane, choose .
Note-
If the database engine supports downloading incremental data and you have enabled transaction log backup for the backup instance, you can also download transaction log backup sets.
-
The download process for a Transaction Log Backup is similar to that for a Full Data backup. To start, choose .
-
-
In the Actions column for the target Backup Set ID, click Download.
-
In the dialog box that appears, click OK.
After you click OK, the system packages, compresses, and converts the backup file into a downloadable format. The system then redirects you to the Backup Set Download details page.
NoteThe time required to compress and convert the backup file depends on its size. For example, a 150 GB file can take about 4 hours to process.
-
When the Status of the download task changes to Completed, click Download.
-
In the panel that appears, select a download method.
-
I see. Downloads: Starts the download in your browser.
-
Copy public network address
-
Windows
Open a browser, paste the copied address into the address bar, and press Enter to start the download.
-
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 network address
-
Windows
Open a browser, paste the copied address into the address bar, and press Enter to start the download.
-
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, decompress the file.
Zip file
Use the following command to decompress the file from the command line:
-
Run the
unzip <download_task_id>.zipcommand.If your database contains a large amount of duplicate or voluminous data, the
error: invalid zip file with overlapped components (possible zip bomb)error may occur during decompression. To resolve this, set theUNZIP_DISABLE_ZIPBOMB_DETECTION=TRUEenvironment variable. For example:UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE unzip 1iyq***m42.zip.NoteOn a Windows system, you can decompress the file directly.
-
Optional: If the previous step produces a .xb file, download the required tool and run the following command to decompress it.
To obtain the tool, click xbunpack.exe (for Windows systems) or xbunpack (for Linux systems).
-
Windows
Run the
xbunpack.exe -file=<download_task_id>.xb -dir=/<destination_directory>command to obtain the decompressed file. -
Linux
Method 1: Run the
./xbunpack -file=<download_task_id>.xb -dir=/<destination_directory>command to obtain the decompressed file.Method 2: Run the
cat <download_task_id>.xb | ./xbunpack -dir=/<destination_directory>command to obtain the decompressed file.NoteThe
xbunpacktool requires execute permissions. You can run thechmod +x xbunpackcommand to grant the permissions.
-
.tar.gzfile-
Run the
gzip -d <download_task_id>.tar.gzcommand to obtain the<download_task_id>.tarfile.NoteOn a Windows system, you can decompress the file directly.
-
Run the
file <download_task_id>.tarcommand to check the file format:-
If the format is
POSIX tar archive, run thetar xvf <download_task_id>.tarcommand to obtain the file. -
If the format is
Zip archive data, at least v2.0 to extract, run theunzip <download_task_id>.tarcommand to obtain the file. -
If the format is
data, run theunzip <download_task_id>.tarcommand to obtain the<download_task_id>file.
-
-
Optional: If you obtain a .xb file after completing the previous step, you must download the appropriate tool and run the following command to decompress the file.
-
Windows
Run the
xbunpack.exe -file=<download_task_id>.xb -dir=/<destination_directory>command to obtain the decompressed file. -
Linux
NoteThe downloaded
xbunpacktool requires execute permissions. You can run thechmod +x xbunpackcommand to grant the permissions.Method 1: Run the
./xbunpack -file=<download_task_id>.xb -dir=/<destination_directory>command to obtain the decompressed file.Method 2: Run the
cat <download_task_id>.xb | ./xbunpack -dir=/<destination_directory>command to obtain the decompressed file.
To obtain the tool, click xbunpack.exe (for Windows systems) or xbunpack (for Linux systems).
-
.tar.zst file
-
Use the following command to decompress the file from the command line:
# Decompress <archive_name>.tar.zst to <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_name>.tar.zst | tar -xvf - -C <destination_path>NoteWindows does not natively support the
zstdcommand-line tool. For GUI-based decompression, use 7-Zip with a zstd plug-in or PeaZip. To use the command line on Linux or macOS, installzstdusing the command for your operating system:-
macOS (using Homebrew):
brew install zstd -
CentOS/RHEL:
sudo yum install zstd -
Ubuntu/Debian:
sudo apt install zstd
-
-
Optional: If the previous step produces a .xb file, download the required tool and run the following command to decompress it.
To obtain the tool, click xbunpack.exe (for Windows systems) or xbunpack (for Linux systems).
-
Windows
Run the
xbunpack.exe -file=<download_task_id>.xb -dir=/<destination_directory>command to obtain the decompressed file. -
Linux
Method 1: Run the
./xbunpack -file=<download_task_id>.xb -dir=/<destination_directory>command to obtain the decompressed file.Method 2: Run the
cat <download_task_id>.xb | ./xbunpack -dir=/<destination_directory>command to obtain the decompressed file.NoteThe
xbunpacktool requires execute permissions. You can run thechmod +x xbunpackcommand to grant the permissions.
-
-