Skip to content

Instantly share code, notes, and snippets.

View albertocoletta's full-sized avatar
👨‍💻
Coding

Alberto Coletta albertocoletta

👨‍💻
Coding
View GitHub Profile
@albertocoletta
albertocoletta / mysqldump.sh
Last active October 18, 2018 12:57 — forked from jakeasmith/mysqldump.sh
A quick snippet for doing a compressed mysql dump with a pv to monitor progress
# 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