Bash script to backup Wordpress
This bash script will accept input and guide you through what it does, but in short, it checks to see if the backup directory specified is set, if not creates it. It will then ask you whether you want one of the following types of backup:
database
files
both