标签:tar inotify file mode conf arc processes cal source
settings {
logfile ="/usr/local/lsyncd/var/lsyncd.log",
statusFile ="/usr/local/lsyncd-2.1.5/var/lsyncd.status",
inotifyMode = "CloseWrite",
maxProcesses = 1
}
sync {
default.rsyncssh,
source="/cargo/apache-tomcat-7.0.92/webapps",
host="root@47.99.152.16",
targetdir="/cargo/apache-tomcat-7.0.92/webapps",
rsync = {
binary = "/usr/bin/rsync",
archive = true,
compress = true,
verbose = true,
rsh = "/usr/bin/ssh -p 60000 -o StrictHostKeyChecking=no"
}
}
lsyncd -log Exec /usr/local/lsyncd-2.1.5/etc/lsyncd.conf
tail -n 100 /usr/local/lsyncd/var/lsyncd.log
标签:tar inotify file mode conf arc processes cal source
原文地址:https://www.cnblogs.com/lanzhyu/p/10384526.html