增量式备份
This commit is contained in:
parent
c37eba9519
commit
b329a8fe53
@ -22,7 +22,7 @@ fi
|
||||
echo ""
|
||||
|
||||
# 获取当前binlog文件名和位置
|
||||
CURRENT_BINLOG=$(mysql -u$userName -p$password -h$host -N -e "SHOW MASTER STATUS" | awk '/ON\./{print $1}')
|
||||
CURRENT_BINLOG=$(mysql -u$userName -p$password -h$host -N -e "SHOW MASTER STATUS" | awk '{print substr($1, 4)}')
|
||||
CURRENT_POSITION=$(mysql -u$userName -p$password -h$host -N -e "SHOW MASTER STATUS" | awk '{print $2}')
|
||||
|
||||
echo current_binlog $CURRENT_BINLOG
|
||||
|
Loading…
x
Reference in New Issue
Block a user