Hands-on task
RDB backup with BGSAVE
Redis holds orders (order:*) and customers (customer:*) — 500 keys in total. Automatic snapshots are disabled on the server, and the dump.rdb in the data directory is stale.
Make a fresh backup:
- start a background snapshot with
BGSAVE(not the blockingSAVE); - wait until it finishes;
- copy the resulting file to
/root/backup/dump.rdb.
Don't change the data in Redis.
- redis
- RDB
- BGSAVE
- LASTSAVE
- redis-check-rdb
- backup