手动运行时,是可以同步过来的,但就是不能自动触发运行;就是 /mnt 有变化了,也不能自动触发同步。
试了 incron 的 IN_ALL_EVENTS,也是一样,也不能触发自动同步。望高人赐教!
这是配置文件。
settings {
logfile = "/var/log/lsyncd.log",
statusfile = "/var/log/lsyncd.status"
}
sync {
default.rsync,
source = "/mnt/pmc",
target = "/home/总库 /pmc",
exclude = {".",".tmp","~."}
}
mount -t cifs -o ...