Skip to content

Instantly share code, notes, and snippets.

@alexbartsch
Created November 17, 2014 09:38
Show Gist options
  • Save alexbartsch/fa3ec76e0025b69f6dcc to your computer and use it in GitHub Desktop.
Save alexbartsch/fa3ec76e0025b69f6dcc to your computer and use it in GitHub Desktop.
Create MySQL dump for all databases
mysqldump -u root --all-databases | gzip -c > $(date +%Y-%m-%d)_name-all-databases.sql.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment