From 1bff2c0602ed2610356c7d7627ee513ba0c0df1c Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Fri, 14 Jul 2023 17:37:29 +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 9112ccc..30d69a5 100755 --- a/backUpIncremental.sh +++ b/backUpIncremental.sh @@ -31,7 +31,7 @@ cd $backUpPath #if [ -z "$LAST_BINLOG" ]; then # mysqldump -u $MYSQL_USER -p$MYSQL_PASSWORD -h $MYSQL_HOST $MYSQL_DATABASE > "$BACKUP_DIR/full_backup.sql" #else - echo 'docker exec maria /usr/bin/mysqlbinlog -u{$userName} -p${password} -h${host} --start-position=0 --stop-position=${CURRENT_POSITION} --result-file="${backUpPath}/$dbName-${currentTime}.sql" ${LAST_BINLOG}' + echo "docker exec maria /usr/bin/mysqlbinlog -u${userName} -p${password} -h${host} --start-position=0 --stop-position=${CURRENT_POSITION} --result-file='${backUpPath}/$dbName-${currentTime}.sql' ${LAST_BINLOG}" docker exec maria /usr/bin/mysqlbinlog -u${userName} -p${password} -h${host} --start-position=0 --stop-position=${CURRENT_POSITION} --result-file="${backUpPath}/${dbName}-${currentTime}.sql" ${LAST_BINLOG} #fi # 更新上次备份的binlog文件名和位置