Created
June 29, 2012 21:00
Revisions
-
infoslack revised this gist
Jun 29, 2012 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,6 @@ DATA=`date +%Y%m%d-%H%M` DUMP=/usr/bin/mysqldump MYSQLDIR='cd /tmp/bkp' TAR=/bin/tar $DUMP -uroot -p123 --all-databases > /tmp/bkp/mysql.bkp_$DATA -
infoslack created this gist
Jun 29, 2012 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ #!/bin/bash DATA=`date +%Y%m%d-%H%M` DUMP=/usr/bin/mysqldump MYSQLDIR='cd /tmp/bkp' TAR=/bin/tar RM=/bin/rm $DUMP -uroot -p123 --all-databases > /tmp/bkp/mysql.bkp_$DATA $MYSQLDIR $TAR czvf mysql.bkp_$DATA.tar.gz mysql.bkp_$DATA