Skip to content

Instantly share code, notes, and snippets.

@JoshuaEstes
Created May 29, 2012 14:43
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JoshuaEstes/2828813 to your computer and use it in GitHub Desktop.
Save JoshuaEstes/2828813 to your computer and use it in GitHub Desktop.
mysql dump snippet, will output a sql file with the date and time of the dump
mysqldump -u USERNAME -p DATABASE_NAME > $(date +"%m-%d-%y_%H-%M%p").sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment