redis的持久化

################################

 

save

[work@a8-cloud-dba-db08 ~]$ redis-cli -a root -p 6381
127.0.0.1:6381> save OK

save命令对应的日志:

[work@a8-cloud-dba-db08 log]$ tail -f redis.log 

4467:M 06 May 2023 23:02:02.803 * DB saved on disk

 

bgsave

[work@a8-cloud-dba-db08 ~]$ redis-cli -a root -p 6381
127.0.0.1:6381> bgsave Background saving started 127.0.0.1:6381>

bgsave命令对应的日志:

[work@a8-cloud-dba-db08 log]$ tail -f redis.log 
4467:M 06 May 2023 23:02:16.486 * Background saving started by pid 4606
4606:C 06 May 2023 23:02:16.526 * DB saved on disk
4606:C 06 May 2023 23:02:16.528 * RDB: 0 MB of memory used by copy-on-write
4467:M 06 May 2023 23:02:16.560 * Background saving terminated with success

 

 

 

 

 

 

 

 

 

 

###############################

posted @ 2023-05-06 23:06  igoodful  阅读(12)  评论(0编辑  收藏  举报