I use lsyncd and lsyncd to send file to other server,.sql file is ok,but mysql-bin.00001 canot update.
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 = "[email protected]::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
}
}
update config file : inotifyMode = "Modify". it is worked