Redis backup recovery

redis server, with only one node. I am inserting a piece of data,

. set 1 1
. get 1
. save
dumps.rdb
Desktop
. del 1
. get 1 nil
.   redis
7.   dumps.rdb/var/lib/redis/
8. redis
9. get 1
nil 

data backup is not restored. I would like to ask what is the reason

Feb.28,2021

have you saved the disk?


found the problem, mainly pay attention to several points
1. Close redis
2 when copying files. Note that the permissions of the file and the group to which it belongs are redis, permissions. It should be 660

.
Menu