From 0e070315dbc8c5d0a140b88475e667e3cce6cecd Mon Sep 17 00:00:00 2001 From: naumso Date: Thu, 14 Dec 2023 19:54:56 +0300 Subject: [PATCH] Update mysql_xtrabackup.sh --- mysql_xtrabackup.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/mysql_xtrabackup.sh b/mysql_xtrabackup.sh index efced4d..762fcd3 100755 --- a/mysql_xtrabackup.sh +++ b/mysql_xtrabackup.sh @@ -54,30 +54,31 @@ while [ "${1}" != "" ]; do -e | --email ) shift email=${1} ; ;; - -i | --ignore-database ) shift + -i ) shift ignore_database=${1} ; ;; --compress-threads ) shift compress_threads=${1} ;; - -q | --quiet ) shift - quiet=1 + -q | --quiet ) quiet=1 ;; --pid-file ) shift pidfile=${1} ;; - -h | --help ) shift - usage ; + -h | --help ) usage ; exit 0; ;; - * ) - echo "Uncnown option ${1}!" ; + * ) echo "Uncnown option ${1}!" ; usage ; exit 1 ; esac shift done +echo ${ignore_database}; + +exit + if [ "${copies}" = "" ] || [ ! -n "${copies}" ] || [ "${copies}" -le "0" ] ; then copies=10 ;