Backup system needed


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?



Submit an 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.

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:

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:

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.