Skip to content

Instantly share code, notes, and snippets.

View sorohan's full-sized avatar

Ben Sorohan sorohan

  • Brisbane, Australia
View GitHub Profile
#!/bin/sh
#
# Usage: mysql-backup.sh dbname <daily|hourly|weekly|monthly> <backup dir> <dump args>
#
if [ -z $1 ]; then
echo "Missing required dbname."
exit 1
fi