This is one of those “looking for advice” posts. Most of my background is with shared hosting environments, so please forgive my ignorance.
I’m researching Trellis/Bedrock/Sage/Digital Ocean as a workflow and general How We Do Things policy for my agency. My goal is to produce a document outlining the pros and cons of this method, specifically the Digital Ocean portion, as compared with the current shared hosting platform that we offer clients.
And one of the big pieces I’m missing is backups.
Currently the cPanel shared hosting environments we have keep a couple of days, and a couple of weeks of full account backups for each of our client sites, and the number of times I’ve had to restore from them for various reasons is greater than 0.
DO offers weekly whole-server backups, but my clients expect something a little more frequent and I’d like to be able to provide that.
I see two options.
There is no end to the available backup plugins for WordPress, but we’re deploying 2-3 sites per month and making sure we set up a backup plugin according to whatever best practice we lay out, individually, per-site, could get difficult to manage, especially if we ever change that policy.
Do you use a plugin? If so which one? Do you have any kind of config-management in place?
Some Other Script
Another option would be a script that creates an archive of the site’s assets and database (
wp-cli db export for the database,
cp -r or
rsync? for the assets? . The rest is in version control with Trellis after all. Daily backups for a week, combined with DO’s weekly snapshots should do the trick I would think.
Is there a playbook I could create or edit to set up a scheduled backup of these items via cron or some such tool? Have you ever done it this way? Am I crazy?
I appreciate any advice you might have.