settings {
logfile = "/var/log/lsyncd/lsyncd.log",
statusFile = "/var/log/lsyncd/lsyncd-status.log",
statusInterval = 20,
insist = true
}
sync{
default.rsyncssh,
delete = false,
source="/var/www/vhosts/example.com/public_html",
host="192.168.122.231",
targetdir="/var/www/vhosts/example.com/public_html",
rsync = {
_extra = { "--include=info.php", "--exclude=*" },
compress = true,
archive = true,
verbose = true,
rsh = "/usr/bin/ssh -p 22 -o StrictHostKeyChecking=no"
}
}