Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created February 23, 2014 21:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangerstudios/9177240 to your computer and use it in GitHub Desktop.
Save strangerstudios/9177240 to your computer and use it in GitHub Desktop.
mysqldump -uusername -ppassword dbname > dbname_`date +'%Y-%m-%d'`.sql
gzip dbname_`date +'%Y-%m-%d'`.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment