Quick backup script with WP-CLI

Quick backup script for WP-CLI users. This just grabs the DB, active theme, a list of plugins and the wp-config file.
This isn’t meant to replace a daily backup of all DBs and changed files, but it is the kind of thing that I find handy to run just before I attempt something stupid on my live site.

This is probably a little bit too far down the techie spectrum for my WebsiteDoctor blog so posting here.

Any suggestions for improvement welcome. I’ve updated this a couple of times since I originally posted it.

Leave a Reply