Help Center/
Distributed Cache Service/
FAQs/
Data Backup, Export, and Migration/
How Do I Export DCS Redis Instance Data?
Updated on 2024-12-11 GMT+08:00
How Do I Export DCS Redis Instance Data?
- Instance data of DCS instances other than single-node ones can be exported on the console:
- Go to the Cache Manager page on the DCS console.
- Click the name of the desired instance. The instance details page is displayed.
- Choose Backups & Restorations.
- If No records found is displayed, perform a backup and click Download.
- Single-node instances do not support the backup function. You can use command SYNC on redis-cli to export data to RDB files.
- If the instance allows the SYNC command, run the following command to export the instance data:
redis-cli -h {source_redis_address} -p 6379 [-a password] --rdb {output.rdb}
- If the instance does not allow the SYNC command (such as a Redis 4.0/5.0/6.0 single-node instance), migrate the instance data to a master/standby instance and export the data by using the backup and restoration functions on the console.
- If the instance allows the SYNC command, run the following command to export the instance data:
Parent topic: Data Backup, Export, and Migration
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.