Skip to content

Instantly share code, notes, and snippets.

@bananana
bananana / wp-update.sh
Last active Dec 18, 2019
Bash script to run automatic updates and backups using wp-cli
View wp-update.sh
#!/bin/bash
#
# Backup and update WordPress using wp-cli
#
# Set the -e shell option so the script exits immediately if any command within
# it exits with a non-zero status.
set -e
# Set PATH environment variable
You can’t perform that action at this time.