Skip to content

Instantly share code, notes, and snippets.

@jdani
jdani / wp-backup.sh
Last active January 15, 2018 18:21 — forked from fcingolani/wp-backup.sh
Wordpress Backup bash script
#!/usr/bin/env bash
# Exit if any command fails
set -o errexit
# Exit if trying to use undeclared var
set -o nounset
# On piped commands, use the exit status of the last command throwing a non-zero exit code