I am using lsyncd version 2.2.2. here is my current code.
settings {
logfile = "/etc/lsyncd.log",
statusFile = "/etc/lsyncd.status",
insist = true,
}
sync {
default.rsyncssh,
source = "/home/abc/public_html/course/testcgi/adminfiles",
host = "xxx.xx.xxx.xxx,
targetdir = "/home/abc/public_html/course/testcgi/adminfiles",
delay = 0,
exclude = { '*' },
rsync = {
perms = true,
owner = true,
}
}
As the code stands above it will and does exclude all files. Now I want to include specific file names. I have tried
include = { '*' }
include-from = { '*' }
but neither is working.
Is this not possible to do?
Thanks.