Skip to content

Instantly share code, notes, and snippets.

@jakeasmith
Last active June 28, 2021 20:07
Show Gist options
  • Save jakeasmith/5701374 to your computer and use it in GitHub Desktop.
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
mysqldump [database] | pv | gzip -c > [file].sql.gz
@stefkes
Copy link

stefkes commented Jun 24, 2018

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.

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