Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to backup / dump & Restore redis database?


$ redis-cli
127.0.0.1:6379> auth mypassword
127.0.0.1:6379> CONFIG GET dir
127.0.0.1:6379> SAVE
127.0.0.1:6379> quit

This ensures dump.rdb is completely up-to-date, and shows us where it is stored (/var/lib/redis/dump.rdb in this case). dump.rdb is also periodically written to disk automatically.

$ cd /var/lib/redis
$ cat dump.rdb

dump.rdb is your redis backup file

Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x