How should I backup a managed database on Digitalocean?

I need to create a backup from my managed DB , is there any way to do this? actually I wanted to add a secondary to this managed DB but I couldn’t find anything in Documentations. Now I want to create a Full or differential backup from it to other location.

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.

Site Moderator
Site Moderator badge
February 4, 2023

Hello @amirdolphin

You can use tools like mysqldump to backup the database manually as well. You can check the answer from Bobby here:

What I usually do is use a MySQL backup tool like mysqldump for example. It allows you to export your databases without SSH access.

To export a backup you could run the following command:

mysqldump -h your_database_hostname -u your_username -p your_database_name > your_database_name-$(date +%F).sql

You could also take a look at this tutorial here for more information.

Hope that this helps.

Site Moderator
Site Moderator badge
February 4, 2023

Hey @amirdolphin,

I would recommend you to check the following article:

and most importantly this section here:

Managed Databases: As the name implies, DigitalOcean manages these databases for you. We handle common database administration tasks such as setup, backups, and updates so you can focus more on your app and less on the database. We currently support three engines: [MySQL](, [PostgreSQL,]( and [Redis](

This means backups are being done automatically by DigitalOcean for your Managed Database product.

If you want to create a backup on your own though, you only need to create a database dump once in a while and store that backup somewhere. You can check the following article on the topic:

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.