February 2018
Intermediate to advanced
382 pages
11h 33m
English
The preceding steps are quite straightforward. The BGSAVE flushes all data into the RDB file, therefore backing up this file is enough. It is worth setting up a crontab job to do the backup regularly.
It is important to disable AOF before restoring data to Redis, because Redis will try to restore data from the AOF file if AOF is enabled. If the AOF file can not be found (we deleted/renamed it in step 3), Redis will be started with an empty dataset. In this case, once the RDB snapshot is triggered due to the key changes, the original RDB file will be rewritten.
Read now
Unlock full access