Downloading a Backup File
Automatically backed up data can be retained for a maximum of 7 days. Manually backed up data is not free of charge and takes space in OBS. Due to these limitations, you are advised to download the RDB and AOF backup files and permanently save them on the local host.
This function is supported only by master/standby and cluster instances, and not by single-node instances. To export the data of a single-node instance to an RDB file, you can use redis-cli. For details, see How Do I Export DCS Redis Instance Data?
To export the data of a master/standby or cluster instance, do as follows:
- Redis 3.0: Export the instance data to AOF files by using the DCS console, or to RDB files by running the redis-cli -h {redis_address} -p 6379 [-a {password}] --rdb {output.rdb} command by using redis-cli.
- Redis 4.0 and later: Export the instance data to AOF or RDB files by using the DCS console.
Prerequisites
The instance has been backed up and the backup is still valid.
Procedure
- Log in to the DCS console.
- Click in the upper left corner and select a region and a project.
- In the navigation pane, choose Cache Manager.
Filter DCS instances to find the desired one.
- Click the name of the DCS instance to display more details about the DCS instance.
- On the instance details page, click Backups & Restorations.
A list of historical backup tasks is then displayed.
- Select the historical backup data to be downloaded, and click Download.
- In the displayed, Download Backup File dialog box, select either of the following two download methods.
Download methods:
- By URL
- Set the URL validity period and click Query.
- Download the backup file by using the URL list.
If you choose to copy URLs, use quotation marks to quote the URLs when running the wget command in Linux. For example:
wget 'https://obsEndpoint.com:443/redisdemo.rdb?parm01=value01&parm02=value02'
This is because the URL contains the special character and (&), which will confuse the wget command. Quoting the URL facilitates URL identification.
- By OBS
- By URL
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot