From 12cbb50d85d2fdc2ca4ef2fecf2cb73c69cce22c Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Fri, 14 Jul 2023 21:58:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E9=87=8F=E5=BC=8F=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backUpIncremental.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backUpIncremental.sh b/backUpIncremental.sh index 836a686..ca4519e 100755 --- a/backUpIncremental.sh +++ b/backUpIncremental.sh @@ -25,6 +25,8 @@ echo "" CURRENT_BINLOG=$(mysql -u$userName -p$password -h$host -N -e "SHOW MASTER STATUS" | awk '{print $1}') CURRENT_POSITION=$(mysql -u$userName -p$password -h$host -N -e "SHOW MASTER STATUS" | awk '{print $2}') +echo current_binlog $CURRENT_BINLOG +echo current_binPostition $CURRENT_POSITION # 备份增量变更到文件 # 如果上次备份的binlog文件名和位置为空,则进行全量备份 cd $backUpPath