The best Redis data backup and recovery Tutorial In 2024, In this tutorial you can learn Data recovery,Bgsave,
Redis SAVE command is used to create a backup of the current database.
redis Save command basic syntax is as follows:
redis 127.0.0.1:6379> SAVE
redis 127.0.0.1:6379> SAVE OK
This command creates dump.rdb file redis installation directory.
redis 127.0.0.1:6379> CONFIG GET dir 1) "dir" 2) "/usr/local/redis/bin"
The above commandCONFIG GET dir output redis installation directory is / usr / local / redis / bin .
Redis create backup files can also use the commandBGSAVE, the command in the background.
127.0.0.1:6379> BGSAVE Background saving started