Download data backups and log backups

更新时间:
复制 MD 格式

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.

Important

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

  1. Log in to DMS 5.0.

  2. In the top navigation bar, choose Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

    Note

    If you use the DMS console in simple mode, move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner of the DMS console and choose All Features > Security and disaster recovery (DBS) > Data Disaster Recovery (DBS) > Disaster Recovery Data Source.

  3. 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 Backup Data > Logical Backup. 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.

    Note

    The 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.

  4. 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.

  5. In the dialog box that appears, click Acknowledge and Download. Alternatively, use the public or internal address to download the backup set.

  6. 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:

    1. Run the gzip -d <Download task ID>.tar.gz command to obtain the <Download task ID>.tar file.

    2. 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 the tar 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 the unzip <Download task ID>.tar command to obtain the <Download task ID> file.

    3. 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.