Update mysql_backup.sh

This commit is contained in:
Naum Soloveychik
2020-06-14 15:16:19 +03:00
parent 2b562b8f90
commit 05c5ac4fd9

View File

@@ -14,6 +14,7 @@ usage()
echo "-e | --email :: notification email" echo "-e | --email :: notification email"
echo "-l | --lock-all-tables" echo "-l | --lock-all-tables"
echo "-s | --single-transaction" echo "-s | --single-transaction"
echo "-i| --ignore-table"
echo "-z | --gzip :: compress dump using gzip" echo "-z | --gzip :: compress dump using gzip"
echo "-x | --xz :: compress dump using xz" echo "-x | --xz :: compress dump using xz"
echo "--xz-threads :: number of worker threads to use by xz. 0 - use all CPU. (default: 2)" echo "--xz-threads :: number of worker threads to use by xz. 0 - use all CPU. (default: 2)"
@@ -91,6 +92,8 @@ while [ "${1}" != "" ]; do
;; ;;
-q | --quiet ) quiet=1 -q | --quiet ) quiet=1
;; ;;
-i | --ignore-table ) mysqlparams="${mysqlparams} --master-data --include-master-host-port --ignore-table=${1}" ;
;;
--pid-file ) shift --pid-file ) shift
pidfile=${1} pidfile=${1}
;; ;;