This topic describes how to download the unencrypted log backup files of an ApsaraDB RDS for MariaDB TX instance. You can use these log backup files with snapshot backup files to restore the data of the RDS instance.

Limits

A Resource Access Management (RAM) user that has only the read permissions is not authorized to download backup files. You can grant the required permissions to the RAM user by using the RAM console.

Database engine Download of data backup files Download of log backup files
MariaDB You cannot download the data backup files of your RDS instance. However, you can use the restoration feature to restore the data of your RDS instance to the same RDS instance or to a new RDS instance. You can download the log backup files of your RDS instance.

Procedure

  1. Go to the Backup and Restoration page.
    1. Log on to the ApsaraDB for RDS console. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
      选择地域
    2. Find your RDS instance and click its ID. In the left-side navigation pane, click Backup and Restoration.
  2. On the Log Backup tab of the page that appears, select a time range, find the log backup file that you want to download, and then click Download in the Actions column.
    Note If the log backup file is used to restore the data of your RDS instance to an on-premises database, you must make sure that the following requirements are met:
    • The instance ID of the log backup file must be the same as the instance No. of the data backup file that you select. The selected data backup file is used together with the log backup file to restore the data of your RDS instance.
    • The start time of the log backup file must be later than the end time of the data backup file that you select and earlier than the point in time to which you want to restore the data of your RDS instance.
  3. In the Download Instance Backup Set or Download Binary Log dialog box, click Download.
    Download method Description
    Download Use a browser to download the backup file.
    Copy Internal URL Copy the internal URL from which you can download the backup file. If your ECS and RDS instances reside in the same region, you can log on to the ECS instance and then use the internal URL to download the backup file. This method is faster and more secure than the other download methods.
    Copy Public URL Copy the public URL to download the backup file. If you want to use other tools to download the backup file, select this download method.
    Note In a Linux operating system, you can run the following command to download a log backup file:
    wget -c '<Download URL of the log backup file>' -O <User-defined file name>.tar.gz
    • The -c parameter is used to enable resumable download.
    • The -O parameter is used to save the downloaded result as a file with the specified name (the file extension is .tar.gz or .xb.gz as included in the URL).
    • If you enter more than one download URL, then you must include each download URL in a pair of single quotation marks (''). Otherwise, the download fails.