What MySQL backup options are available?

Posted February 21, 2013 12.3k views
One of the features that I reply on my current VPS is MySQL backup as a built-in service, i.e. I can restore a database from any of the daily, weekly or monthly backup. If I switch to DigitalOcean, is there something similar available? Or I have to manage my MySQL backups?

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
7 answers
I'm leaning toward replication vs full/incremental just because of in my mind there is less of a chance of data loss and recovery would be much faster. But, I am concerned that if I spin up another VPS just for backup, that how would I be able to guarantee that I wouldn't lose both the primary and slave servers in the event of some sort of catastrophic failure at DO? Or just in general, is it safe to use another DO VPS as a backup server?

Thanks, Mike
@mikeg: You can have a backup droplet in another region so if anything happens to a specific datacenter/region, your data will still be there.

You can also have a master-slave relationship with a mysql server in another datacenter so you can just switch the database server's hostname in your app if the other one goes down.

Yeah. I thought about that as an option. Probably as good a solution as any. On the master-slave option, maybe a tad of a performance hit not being in the same datacenter. Not sure. Either way, still a better solution.

Thanks, Mike
They offer daily backups (sometimes it misses a day here and there), though I'd recommend managing your own. DO is relatively cheap in comparison to Linode and multiple other providers, though they're still just as reliable from experience over the past few months, but you really shouldn't put all your eggs in one basket.

You can use RSYNC to store backups off-site to another VPS, or server.
You can use automated backups, point in time user initiated snapshots, or you can setup a mysqldump that runs via crontab to another virtual server.

Currently going through the steps to install automysqlbackup here:

by Justin Ellingwood
MySQL is a popular database management system that is often used to manage the data from websites and applications. This guide will demonstrate how to backup the data in your MySQL databases, using a number of different methods.

With a server on DigitalOcean you have multiple options:

  1. Rely on DigitalOcean daily backups, but it is very limited for MySQL since it is a snapshot backup of the whole server.
  2. Create your own backup script as mentioned in other comments.
  3. Or, use a service that handles this for you.

I’m one of the founders of so I’ll recommend to you to check our mysql backups option which you can pair with your DigitalOcean server and DigitalOcean Spaces as a storage for your daily database backups.