настроен lsyncd
sync {
default.rsyncssh,
source="/home/ttt/",
host=server,
targetdir="/srv/hhh/",
exclude={
"/perl.pm",
"/c.so",
"/c.pm",
},
delay=10,
rsync = {
_extra = {"-e", "/usr/bin/ssh -p 2222 -i /root/.ssh/id_rsa -o StrictHostKeyChecking=no -o BatchMode=yes"}
},
ssh = {
port = 2222
}
}
end