Downloading DCS Instance Backup Files
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, read/write splitting, 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?
Prerequisites
The instance has been backed up and the backup is still valid.
Downloading DCS Instance Backup Files
- Log in to the management console, and choose Application > Distributed Cache Service in the service list.
- Click in the upper left corner of the management console and select the region where your instance is located.
- In the navigation pane, choose Cache Manager.
Filter DCS instances to find the desired DCS instance.
- 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.
- Click Download in the row containing the chosen backup task.
- Download the backup by URL or OBS.
- By URL
Figure 1 By URL
- Set the URL validity period and click Query. A temporary backup file URL will be generated. The URL has a validity period, and needs to be generated again after that.
URL validity period: 5 minutes to 12 hours.
- In the URL list, click Download to download files.
- Click Copy all URLs or the copy icon after a URL to copy URLs.
- 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.
- Keep the backup files and URLs secure to prevent data leakage.
- Set the URL validity period and click Query. A temporary backup file URL will be generated. The URL has a validity period, and needs to be generated again after that.
- By OBS
Figure 2 By OBS
- Click By OBS, click OBS Browser+ in the Prepare area.
- Install the OBS Browser+ client. Log in to OBS Browser+ using the Huawei Cloud account by referring to Logging In to OBS Browser+.
- Add an external bucket to the OBS Browser+ client. For details, see Adding an External Bucket.
Use the bucket name in the Attach External Bucket area.
- Click the bucket name. Search for backup files in the bucket. For details, see Searching for a File or Folder.
The backup file path in the Download Backup File area contains the name of the backup file and folder.
- Click the download icon on the right to download the backup file.
- By URL
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.