Update mysql_backup.sh

This commit is contained in:
2023-06-27 02:50:05 +03:00
parent 2729ca5277
commit 13fc0233b8

View File

@@ -14,7 +14,7 @@ usage()
echo "-e | --email :: notification email"
echo "-l | --lock-all-tables"
echo "-s | --single-transaction"
echo "-i| --ignore-table"
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)"
@@ -56,6 +56,9 @@ mysqlparams=" --all-databases \
--comments \
--quick \
--force \
--order-by-primary \
--apply-replica-statements \
--dump-date \
--ignore-table=mysql.slow_log \
--log-error=/tmp/mysqldump.log" ;
@@ -87,7 +90,7 @@ while [ "${1}" != "" ]; do
--xz-threads ) shift
xzthreads=${1}
;;
-m | --master ) mysqlparams="${mysqlparams} --master-data --include-master-host-port --apply-slave-statements" ;
-m | --master ) mysqlparams="${mysqlparams} --source-data --dump-replica" ;
;;
-q | --quiet ) quiet=1
;;