Update mysql_xtrabackup.sh

This commit is contained in:
2023-12-14 19:54:56 +03:00
parent efa9b56bbf
commit 0e070315db

View File

@@ -54,30 +54,31 @@ while [ "${1}" != "" ]; do
-e | --email ) shift -e | --email ) shift
email=${1} ; email=${1} ;
;; ;;
-i | --ignore-database ) shift -i ) shift
ignore_database=${1} ; ignore_database=${1} ;
;; ;;
--compress-threads ) shift --compress-threads ) shift
compress_threads=${1} compress_threads=${1}
;; ;;
-q | --quiet ) shift -q | --quiet ) quiet=1
quiet=1
;; ;;
--pid-file ) shift --pid-file ) shift
pidfile=${1} pidfile=${1}
;; ;;
-h | --help ) shift -h | --help ) usage ;
usage ;
exit 0; exit 0;
;; ;;
* ) * ) echo "Uncnown option ${1}!" ;
echo "Uncnown option ${1}!" ;
usage ; usage ;
exit 1 ; exit 1 ;
esac esac
shift shift
done done
echo ${ignore_database};
exit
if [ "${copies}" = "" ] || [ ! -n "${copies}" ] || [ "${copies}" -le "0" ] ; if [ "${copies}" = "" ] || [ ! -n "${copies}" ] || [ "${copies}" -le "0" ] ;
then then
copies=10 ; copies=10 ;