我使用lsyncd和lsyncd将文件发送到其他服务器,.sql文件可以,但是mysql-bin.00001无法更新。
lsyncd.conf
settings {
logfile = "/var/log/lsyncd/lsyncd.log",
statusFile = "/var/log/lsyncd/lsyncd.status",
inotifyMode = "CloseWrite",
maxProcesses = 1000,
maxDelays = 1
}
sync {
default.rsync,
source = "/var/lib/mysql",
target = "root@192.168.85.173::backup",
delay = 15,
exclude = {'ib*','mysql','test','*.cnf','*.sock','performance_schema'},
rsync = {
binary = "/usr/bin/rsync",
password_file = "/etc/images.pas",
archive = true,
compress = false,
verbose = true
}
}
答案 0 :(得分:0)
更新配置文件:inotifyMode =“修改”。是可行的