Do you backup your databases offsite?

I'm trying to figure out if offsite backups are worth it and how I would even go about it.

Absolutely! Always do this. I recall the story of a startup with Fortune 500 clients who lost all their data after DigitalOcean banned them.

I use Dokku which allows me to set up a database backup cron. It points to an S3 bucket (in my case, a private DO Spaces instance) where nightly backups are taken of Makerlog's data.

Always do backups. They save butts!

0 Likes
Jacob Author

I was wondering, since you do 1 backup a day, is there anything in place to restore data that is created in-between backups?

0 Likes

You can take db dumps more frequently if you want, depends on your usecase and how critical it is. If it's critical - AWS Aurora has a replication service, you can replicate the db from anywhere, and they have point in time restores. The only problem it's quite pricey.

But 1 backup a day is still better than 0 :)

0 Likes
Jacob Author

@gera True. Good info, thanks!

0 Likes

depends on the data

we store our customers, invoices, company data once as a normal backup (weekly) in a fireproof safe and additionally once a month on another hard disk which is even located in another house.

online backups are stored on a backup system and on the system itself

my working station and the working station of every employee has a backup hard drive

ask yourself:

  • how much depends on when your backup is destroyed. be it hardware failure, fire blight or the like.
  • how much time does it take to recover the data if you have no backups

For example i dont backup my image download folder :D

0 Likes
ismail

Definitely backup but that's not enough. You must also make sure the backups are "restorable". A tiny data corruption might ruin everything. You should also encrypt the backups if they have sensitive information.

0 Likes
Jacob Author

Thanks for the replies! Going to try to set it up this week. Think I'm going to try to backup to Backblaze since I have a bunch of free storage there.

0 Likes
Matt Spurrier

dump the database then use restic to backup to backblaze b2 With regards to actually doing the backups, for mysql i wrote this: https://github.com/digitalsparky/mysql-tools and for postgresql i wrote this: https://github.com/digitalsparky/pgsql-tools

Hope that helps :)

0 Likes
Wassim

Off course, this is absolutely necessary for any serious business out there.

0 Likes
Jacob Author

Just tried setting up backups to Backblaze. Doesn't look like it'll work currently due to Backblaze only supporting IPv4 while I'm using a $2.50 Vultr box which is IPv6 only. Looks like AWS S3 does, however. Guess I'll try that.

0 Likes

Please sign in to leave a comment.