Last active
June 28, 2021 20:07
-
-
Save jakeasmith/5701374 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 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
mysqldump [database] | pv | gzip -c > [file].sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the
-W
flag suggested by @mrvdot is required, otherwise the transfer will start without the password and effectively nothing will happen since there's no connection.