This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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)" |
NewerOlder