Backup files for a Tair instance are retained for 3 to 730 days. If you need to archive backups for a longer period, for example, for regulatory compliance or information security purposes, you can download the backup files to your local machine. You can also restore a downloaded backup file to a self-managed database for data analysis or business testing.
Usage notes
You cannot download backup files from ESSD/SSD-based instances.
Procedure
Log on to the console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.
-
In the navigation pane on the left, click Backup and Recovery.
-
Find the target backup file and click Download in the Actions column.
ImportantFor instances that use the cluster architecture or read/write splitting architecture, you must download the backup file for each data node to ensure data consistency.
-
In the dialog box that appears, choose one of the following download options.
-
Download: Downloads the file to your computer.
-
Get URL for Intranet: Use an intranet URL to download the backup file to an ECS instance under the same Alibaba Cloud account. This method is faster and more secure.
ImportantYou can download a backup file by using an intranet URL only from an ECS instance that is under the same Alibaba Cloud account as the Tair instance. The ECS and Tair instances do not need to be in the same VPC.
-
Get URL for Internet: Use this method to download the backup file when you cannot access the instance over the intranet.
-
Appendix: Download methods and commands
Windows: Enter the URL in the address bar of a browser and press the Enter key. The browser downloads the backup file.
Linux: Run a command in the following format:
wget -c '<URL that is used to download the backup file>' -O <Name of the backup file>.<Suffix of the backup file>ImportantAdd a pair of single quotation marks (' ') to the URL that is used to download the backup file. Otherwise, the
http request sent, awaiting responseerror message is returned.Example:
wget -c 'http://rds****.oss-cn-hangzhou-internal.aliyuncs.com/custins416****/hins1****.rdb?****' -O backupfile.rdb
Related APIs
|
API |
Description |
|
Queries the backup file information and download URLs of an instance. |