How Do I Export DCS Redis Instance Data?
- Master/standby and cluster instances:
- Single-node instances:
Single-node instances do not support the backup function. You can use redis-cli to export data to RDB files. This operation depends on SYNC command.
- 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 or 5.0 single-node instance), migrate the instance data to a master/standby instance and export the data by using the backup function.
- If the instance allows the SYNC command, run the following command to export the instance data:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.