Migrating Redis databases to Managed Databases
You can migrate Redis databases to Selectel Managed Databases.
-
Connect to Redis. If you are using a password, specify it in the environment variable:
export REDISDUMPGO_AUTH=<password>Specify
<password>— the source cluster user password. -
Create a source cluster dump using the redis_dump_go: tool:
redis-dump-go \-host <host> \-port <port> \> redis_backup.txtSpecify:
<host>— the IP address or DNS name of the source cluster master host;<port>— the port.
-
Restore the dump in the receiving cluster:
redis-cli \-a <password> \-h <host> \-p <port> \--tls \--cacert <cacert> \--pipe \< redis_backup.txtSpecify:
<password>— the receiving cluster user password;<host>— the IP address or DNS name of the receiving cluster master host;<port>— the port;<cacert>— the root certificate.