增量式备份

This commit is contained in:
zhangkun9038@dingtalk.com 2023-07-14 21:58:57 +08:00
parent 1f3d1c7467
commit 12cbb50d85

View File

@ -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