There is a reasonable simple way to move data between Redis servers: Simply temporarily configure the new server as a replica of the old server.
To do this:
redis-cli
./var/logs/redis
) in another terminal.INFO replication
)REPLICAOF <host> <port>
(on older Redis versions this is called SLAVEOF
).REPLICAOF no one
.This even works if the new server is itself master to other replicas.