RDS lets you download unencrypted log backups for your instance for data management and restoration.
Limitations
Read-only RAM users cannot download backup files. To grant them the required permissions, use the RAM console.
|
Data backup file |
Log backup file |
|
You cannot download data backup files. To restore data, go to the Base Backups page, click the Data Backup tab, and select a backup set to restore to a new or the original instance. |
You can download log backup files. |
Procedure
Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
-
In the left-side navigation pane, click Backup and Restoration.
-
On the Base Backups page, click the Log Backup tab.
-
For the target backup set, click Download in the Actions column.
NoteIf you use a log backup to restore data to an on-premises database, note the following:
-
The log backup and the data backup must be from the same instance.
-
The log backup's start time must be after the data backup's time and before your target restoration time.
-
-
In the dialog box, read the notice, check the acknowledgement box, and click Download. You can also copy the download URL.
-
internal URL: Use this URL to download the backup from an ECS instance within the same VPC as your RDS instance.
-
public URL: Use this URL if you are downloading the backup from outside the VPC's internal network.
NoteIn Linux, you can run the following command to download the file:
wget -c '<download_url>' -O <filename>-
-c: Enables resumable download.
-
-O: Saves the downloaded file with a specified filename. We recommend using the original filename from the URL.
-
If the download URL contains multiple parameters, enclose the URL in single quotation marks (') to prevent download failures.
[root@localhost ~]# wget -c 'http://rds-backup-public.oss-cn-hangzhou.aliyuncs.com/cust-1234/hins-5678_data_20230401020000.xb?OSSAccessKeyId=...&Expires=...&Signature=...' -O hins-5678_data_20230401020000.xb -