diff --git a/mysql_backup.sh b/mysql_backup.sh index 5604917..4c1053a 100755 --- a/mysql_backup.sh +++ b/mysql_backup.sh @@ -14,6 +14,7 @@ usage() echo "-e | --email :: notification email" echo "-l | --lock-all-tables" echo "-s | --single-transaction" + echo "-i| --ignore-table" echo "-z | --gzip :: compress dump using gzip" echo "-x | --xz :: compress dump using xz" 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 ;; + -i | --ignore-table ) mysqlparams="${mysqlparams} --master-data --include-master-host-port --ignore-table=${1}" ; + ;; --pid-file ) shift pidfile=${1} ;;