Created
June 19, 2012 16:21
-
-
Save AV4TAr/2955071 to your computer and use it in GitHub Desktop.
mysql backup script
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 | |
| DATE=`date +%a` | |
| DEST=/srv/backups | |
| FILE=$DEST/mysql-bkp-${DATE}.sql.gz | |
| mysqldump -uMY_USERNAME -pMY_PASSWORD MY_DATABASE | gzip > $FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment