Question

How to backup a managed redis database ?

Posted May 14, 2021 100 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:

https://www.digitalocean.com/community/tutorials/how-to-migrate-redis-data-to-a-digitalocean-managed-database

You can use this tool export the Redis Db:

https://github.com/stickermule/rump

Hope this helps!

Cheers,
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 ?