Skip to content

Instantly share code, notes, and snippets.

@the-teacher
Last active December 21, 2015 22:28
Show Gist options
  • Save the-teacher/6374989 to your computer and use it in GitHub Desktop.
Save the-teacher/6374989 to your computer and use it in GitHub Desktop.
#!/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
@the-teacher
Copy link
Author

chmod 700 db_dump.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment