I transferred my redis snapshot (dump.rdb
file) using scp
to a remote server. I need to run a redis server on this remote and recover the data from the
Or you can:
service redis6379 stop
cp /path/to/dump-6379.rdb /var/lib/redis/dump-6379.rdb
. Give it the right permissions (user:group should be redis:redis and mode 644)service redis6379 start
It is important that you stop the redis server before copying the file to the right location, because Redis saves a snapshot before terminating, so it will replace your file.
Besides, you might want to back up the existing dump.rdb file first.