Created
June 2, 2020 18:31
-
-
Save vdbelt/f76febfa83fd3f4518e8406fc157a305 to your computer and use it in GitHub Desktop.
Mysql dump with ionice
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
ionice -c2 nice -n19 mysqldump --opt --single-transaction --quick --hex-blob --events --force --user=$MYSQLUSER -p $db | ionice -c2 nice -n19 gzip > sql_dump.sql.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment