Backup


Redis SAVE command is using for backup of Redis


[root@cdl-test ~]# redis-cli
127.0.0.1:6379> SAVE
OK

You can find the bakcup file dump.rdb in the  /var/lib/redis


Restore


Redis CONFIG GET command is using for Restore of Redis


127.0.0.1:6379>  CONFIG GET dir
1) "dir"
2) "/var/lib/redis"
127.0.0.1:6379>