Backup files of ApsaraDB for Redis are retained for seven days free of charge. If you want to retain backup files for more than seven days due to regulatory or security requirements, you can download the backup files to your computer. You can also restore downloaded backup files to a self-managed database. This way, you can perform data analytics or run tests by using the restored backup files in the self-managed database.
- Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance is deployed. Then, find the instance and click the instance ID.
- In the left-side navigation pane, click Backup and Recovery.
- Find the backup file that you want to download and click Download Backups in the Action column. Note If the instance is a cluster instance or read/write splitting instance, you must download a backup file of each data node in the instance to ensure data consistency. For more information about cluster instances and read/write splitting instances, see Cluster master-replica instances and Read/write splitting instances.
- In the dialog box that appears, perform one of the operations that are described in
the following table.
Operation Procedure Download the backup file over the Internet
- Click Get URL for Internet.
- Paste the URL into the address bar of a browser and press the Enter key. The browser downloads the backup file.
Download the backup file over an internal network. For example, download the backup file on an Elastic Compute Service (ECS) instance.
Note If you download the backup file on an ECS instance, the ECS instance and the ApsaraDB for Redis instance can be deployed in networks of different types.
- Click Get URL for Intranet.
- Select a download method based on the operating system of your computer.
- Windows: Paste the URL into the address bar of a browser and press the Enter key. The browser downloads the backup file.
- Linux: Run the command in the following format:
wget -c '<URL that is used to download the backup file over the internal network>' -O <Name of the downloaded backup file>.<Suffix of the downloaded backup file>
wget -c 'http://rds****.oss-cn-hangzhou-internal.aliyuncs.com/custins416****/hins1****.rdb?...' -O backupfile.rdb
What to do next
After the backup file is downloaded, you can restore the downloaded backup file to a self-managed database. This way, you can perform data analytics or run tests by using the restored backup files in the self-managed database. For more information, see Use redis-shake to restore data.
Related API operations
|DescribeBackups||Queries the information and URL of a backup file of an ApsaraDB for Redis instance.|