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
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.