From 9ff003b250a16f845ab3e54c98cd60ff724fc163 Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Fri, 14 Jul 2023 17:54:11 +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, 1 insertion(+), 1 deletion(-) diff --git a/backUpIncremental.sh b/backUpIncremental.sh index f65ea2b..f3daf29 100755 --- a/backUpIncremental.sh +++ b/backUpIncremental.sh @@ -23,7 +23,7 @@ echo "" # 获取当前binlog文件名和位置 CURRENT_BINLOG=$(mysql -u$userName -p$password -h$host -e "SHOW MASTER STATUS" | grep File | awk '{print $2}') -CURRENT_POSITION=$(mysql -u$userName -p$password -h$host -e "SHOW MASTER STATUS" | grep File | awk '{print $2}') +CURRENT_POSITION=$(mysql -u$userName -p$password -h$host -e "SHOW MASTER STATUS" | grep Position | awk '{print $2}') # 备份增量变更到文件 # 如果上次备份的binlog文件名和位置为空,则进行全量备份