增量式备份
This commit is contained in:
parent
bf449e6d98
commit
8eba5f540d
@ -22,7 +22,7 @@ fi
|
||||
echo ""
|
||||
|
||||
# 获取当前binlog文件名和位置
|
||||
CURRENT_BINLOG=$(mysql -u$userName -p$password -h$host -e "SHOW MASTER STATUS\G" | grep File | awk '{print $2}')
|
||||
CURRENT_BINLOG=$(mysql -u$userName -p$password -h$host -e "SHOW MASTER STATUS\G" | grep File | awk '{print $1}')
|
||||
CURRENT_POSITION=$(mysql -u$userName -p$password -h$host -e "SHOW MASTER STATUS\G" | grep Position | awk '{print $2}')
|
||||
|
||||
# 备份增量变更到文件
|
||||
|
Loading…
x
Reference in New Issue
Block a user