Redis SAVE 命令用于创建当前数据库的备份。
redis Save 命令基本语法如下:
redis 127.0.0.1:6379> SAVE |
redis 127.0.0.1:6379> SAVE |
OK |
redis 127.0.0.1:6379> CONFIG GET dir |
1) "dir" |
2) "/usr/local/redis/bin" |
创建 redis 备份文件也可以使用命令 BGSAVE,该命令在后台执行。
127.0.0.1:6379> BGSAVE |
Background saving started |