Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Last active Sep 25, 2015
Embed
What would you like to do?
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