Skip to content

Instantly share code, notes, and snippets.

View ProjectOrangeBox's full-sized avatar
👨‍💻
Open to Opportunities

Don Myers ProjectOrangeBox

👨‍💻
Open to Opportunities
  • Philadelphia, Pa
View GitHub Profile
@ProjectOrangeBox
ProjectOrangeBox / MySql Backup & Remove
Last active June 18, 2020 13:00
MySql Backup & Remove - with slight modifications
#!/bin/bash
# Script will output dumps for all databases using seperate files
# Derived from this post: http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/
USER="local_backup_script"
PASSWORD="LocalBackupScript#429"
HOST="localhost"
MYSQL="$(which mysql)"
MYSQLDUMP="$(which mysqldump)"
GZIP="$(which gzip)"