-
-
Save boh717/e5bf9d558128b66a17a7a0983213062b to your computer and use it in GitHub Desktop.
A quick snippet for doing a compressed mysql dump with a pv to monitor progress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add -h <host> -u <user> -p if needed | |
mysqldump --single-transaction --skip-lock-tables database [table1 table2 table3] | pv -W | gzip -c > [filename].sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment