Skip to content

Instantly share code, notes, and snippets.

@antongorodezkiy
antongorodezkiy / make_mysql_backup.sh
Last active August 29, 2015 13:57
Simple mysql backup
#!/bin/bash
# crontab
# 1 1 * * * root /bin/bash /path/to/script/mysql_backup.sh > /var/log/cron.log
### MySQL Server Login Info ###
MUSER="root" # mysql username, change this if needed
MPASS="root_pass" # mysql user password, change this
MHOST="localhost" # mysql host, change this if needed
MYSQL="$(which mysql)"