wp-cli: update / backup strategy

The following sequence I use to backup WordPress before I do an update / upgrade:

1) DB Backup

2) File Backup

3) Core update

4) Plugin Update

5) Theme Update

Fallback / Recover


And here some shell scripts:


deploy a wordpress multisite from development to production

Here are my steps for deploying a wordpress multisite (network) from local development environment to a production system.

  1. local: create database dump
  2. rewrite all urls in the database dump
  3. local: zip the wordpress directory
  4. check if your network domains are set up properly
  5. prod: unzip
  6. prod: import dump
  7. prod: change wp_config.php  for production settings
  8. thats it 🙂

console for wordpress – wp-cli


Install a wordpress blog:


wordpress, style.css

Some boilerplates for wordpress theming:

And for child themes:


wordpress php helper

Helper for including theme assets, stylesheets or javascript files: