Report this

What is the reason for this report?

What is the best way to backup my database on a regular basis?

Posted on June 22, 2015

Hi DO Community!

I’m currently running an auction script on one of my droplets and the weekly backups that DO provides just aren’t frequent enough for bidding data. Some auctions open and close within a few days. Whats the best way to backup the auction data in my database?

I’m running MySQL on a LAMP/Ubuntu stack.

I see the new article on Bacula on the community homepage. Is that a reliable application and is it hard to setup? Is that my best option?

Thanks!



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!

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.

This comment has been deleted

if you are interested…

I have a script that you can run on a cronjob that will make a dump of your databases, and also backup your website files. The script will backup to wherever you want, but lately I have been backing up to Amazon S3 buckets. If your droplet ever crashes it is nice to have complete backups of recent databases and website files on a seperate location.

I will work on the tutorial today.

If you want to do prep, you can:

-create an AWS account: https://aws.amazon.com/ -create a database user that will only be for backing up stuff. You can give that user the following global permissions: select file show view super process reload show databases lock tables replication client

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.