Created
May 9, 2012 08:22
-
-
Save sfelde/2642937 to your computer and use it in GitHub Desktop.
mysqldump with gzip
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/bash | |
#[email protected] | |
USER='uname' | |
PWD='password' | |
DBNAME='dbname' | |
DATE=`date +%y%m%d.%H%M` | |
#backup db | |
mysqldump --default-character-set="UTF8" --extended-insert=FALSE -u$USER -p$PWD $DBNAME | gzip > $DATE.stage.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment