Skip to content

Instantly share code, notes, and snippets.

@abeger
Last active October 3, 2015 03:08
Show Gist options
  • Save abeger/2378389 to your computer and use it in GitHub Desktop.
Save abeger/2378389 to your computer and use it in GitHub Desktop.
Dump a MySQL database with mysqldump to a gzipped SQL file.
mysqldump --compact
--skip-add-locks
--skip-lock-tables
--ignore-table=TABLE1
--ignore-table=TABLE2
-h HOST
-u USER
-p
DATABASE_NAME | gzip > DUMPFILE.sql.gz
@abeger
Copy link
Author

abeger commented Apr 13, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment