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/sh | |
# use with cron entries such as: | |
#3 */2 * * * $HOME/bin/mysql-backup.sh dbname backupname hourly H | |
#8 1 * * * $HOME/bin/mysql-backup.sh dbname backupname daily a | |
#33 2 1,8,15,23 * * $HOME/bin/mysql-backup.sh dbname backupname weekly d | |
#33 2 28 * * $HOME/bin/mysql-backup.sh dbname backupname monthly b | |
DB_NAME="$1" | |
BACK_ROOT="$2" |