Question

Periodically backup/transfer data from one app's database (managed db) to another app's database (another managed db)

Hi all,

I was wondering if there is any handy way to setup/schedule a periodical data backup or transfer (e.g. every night) from one app’s managed PSQL database to another apps managed PSQL database on digital ocean? Or what would be the best approach to achieve this, if the backups can’t be used in this way?

Thanks a lot in advance and best regards


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

This can be achieved by following this step-by-step tutorial here on how to backup and restore a MongoDB database:

https://www.digitalocean.com/community/tutorials/how-to-back-up-restore-and-migrate-a-mongodb-database-on-ubuntu-20-04

You can add the commands from the tutorial in a bash script and set that script to run as a cron job every day:

https://www.digitalocean.com/community/tutorials/how-to-use-cron-to-automate-tasks-ubuntu-1804

Hope that this helps!

Best,

Bobby