How to backup a managed redis database ?

Posted May 14, 2021 737 views
DigitalOcean Managed Redis

I have a Digital Ocean managed Redis database. I’d like to back it up so that I can restore it if I ever accidentally delete keys. Is this possible ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello @lucw ,

DigitalOcean Managed Databases Redis clusters do not support Backups and point-in-time recovery (PITR).

However you can take manual backup using bgsave command:

You can use this tool export the Redis Db:

Hope this helps!

Sri Charan

by Mark Drake
Redis provides a number of methods one can use to migrate data from one instance to another, like replication and snapshotting. However, migrations can get complicated when you're moving data to a Redis instance managed by a cloud provider, as managed databases tend to limit how much control you have over the database's configuration. This tutorial outlines one method you can use to migrate data to a Redis instance managed by DigitalOcean using Redis's internal MIGRATE command.
  • you mention: “However you can take manual backup using bgsave command: ”

    if I type bgsave, how will I retrieve the file that has been generated ?

    • I am wondering the same thing. Have you figured it out? If so, what did you do? Thanks!

    • You can add one more person who would like to know how to do this.

      I would also add that, in general, it would be nice to have an automated solution, even if it’s not provided by DigitalOcean directly.