Backup system needed

March 11, 2019 295 views
Apache WordPress Ubuntu 18.04

Hi

I need some advice on how to create a backup of my Wordpress/Woocomerce site as well as a dump of my mysql databases

I currently have two wordpress sites, one a multisite and the other a single site, both running on a single droplet. I have the backups configured for the droplet, but as you know a snapshot isnt really a backup. I need a daily, weekly, monthly backup system that keeps 7 days, and then creates a weekly and monthly and so forth

I have a few scripts and know that I need to run this from a cron but I was wondering if I should use spaces to store these backups etc

Are there nay good tutorials?

Cheers

1 Answer

Hey friend,

Great question. It sounds like you've already found the right scripts. Wordpress isn't too bad to script for when it comes to backing up. I've made a few scripts like this in the past:

https://github.com/jamesrascal/wordpress-backup

That said, it seems like you might want a well packaged end-to-end solution. Have you considered backup plugins? Some of these work quite well:

https://wordpress.org/plugins/tags/backup/

In the past I've used a backup plugin to send backups to Dropbox. I imagine different plugins will support different end points, Spaces or any other S3 compatible object storage surely among them.

As for whether or not Spaces is a good backup spot, my answer might be surprising. Yes for keeping a copy local, but you should also keep a copy somewhere else. Never put all of your eggs in one basket, as they say. Keep a copy on Dropbox, Google Drive, S3, Wasabi, Backblaze, wherever you want. Always assume that your provider of choice could disappear tomorrow. I'm quite confident that isn't happening with us, but it doesn't change best practices.

Jarland

Have another answer? Share your knowledge.