Skip to content

Instantly share code, notes, and snippets.

@oslego
Created November 12, 2009 16:17
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 oslego/233018 to your computer and use it in GitHub Desktop.
Save oslego/233018 to your computer and use it in GitHub Desktop.
mysqldump -h localhost -u username -ppassword dbname1 dbname2 --compress --default-character-set=utf8 | gzip -c --best > `date +%Y_%m_%d_dbname.sql.gz`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment