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
For databases where the appendonly flag is set to no, you can do the following:
dir option in your redis config). Also make sure your backup filename matches the dbfilename config option.If, on the other hand, you need to restore a rdb file to an append only database, you should do something along the lines of:
dir option in your redis config). Also make sure your backup filename matches the dbfilename config option.appendonly flag to no (otherwise redis will ignore your rdb file when it starts).redis-cli BGREWRITEAOF to create a new appendonly file.appendonly flag to yes.Specifically, this is the relevant bit of documentation from the redis config file comments:
# Note that you can have both the async dumps and the append only file if you
# like (you have to comment the "save" statements above to disable the dumps).
# >> Still if append only mode is enabled Redis will load the data from the
# >> log file at startup ignoring the dump.rdb file.