From 05c5ac4fd95cfdf8ed3986f84d62ffbe20219565 Mon Sep 17 00:00:00 2001 From: Naum Soloveychik Date: Sun, 14 Jun 2020 15:16:19 +0300 Subject: [PATCH] Update mysql_backup.sh --- mysql_backup.sh | 3 +++ 1 file changed, 3 insertions(+) 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} ;;