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
Assuming that you run Redis 2.6 or higher, your Redis snapshot filename is dump.rdb
, and it exists in the directory /home/user/dbs
, the following command would do the trick:
redis-server --dbfilename dump.rdb --dir /home/user/dbs
Relevant section from the official documentation: Passing arguments via the command line