Last active
December 21, 2015 22:28
-
-
Save the-teacher/6374989 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/csh | |
mkdir -p /home/nginx/data/www/db_dumps | |
cd /home/nginx/data/www/db_dumps | |
set filename="open_cook_"`date +%Y-%m-%d_%H-%M`".sql" | |
mysqldump -u root -pPASSWORD open_cook_pro --complete-insert > $filename |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod 700 db_dump.sh