Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Last active September 25, 2015 07:08
Show Gist options
  • Save waynegraham/883062 to your computer and use it in GitHub Desktop.
Save waynegraham/883062 to your computer and use it in GitHub Desktop.
mysql database dump
mysqldump -h [host] -u [user] --password=[password] [database] | gzip -c | cat > ~/Desktop/`date +%Y-%m-%d-%T`.sql.gz
mysqldump -h [host] -u [user] --password=[password] [database] | gzip -c | cat > ./`date +%Y-%m-%d-%T`.sql.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment