Created
January 24, 2009 04:47
-
-
Save shillcock/51338 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| # shell script to backup a mysql database | |
| RM=/bin/rm | |
| MV=/bin/mv | |
| TAR=/bin/tar | |
| GZIP=/bin/gzip | |
| CHOWN=/bin/chown | |
| DUMP=/usr/bin/mysqldump | |
| BDIR=/mnt/mrynas/backups/fogbugz | |
| DATE=`date +%Y%m%d` | |
| echo Dumping mysql database as | |
| echo $BDIR/mysql.$DATE.gz | |
| $DUMP --opt -c -e -Q mysql | gzip > $BDIR/mysql.$DATE.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment