axkibe/lsyncd — Issue #105: Parsing of external file with option excludeFrom
Author: cappellaiomatto
Created: 2011-12-30 14:14:33+00:00
State: open

We have a three nodes web cluster running ubuntu 11.10 and after extensive testing we migrated the /www folder from ocfs to lsyncd 2.0.4.

The setup uses default.rsyncssh and from each node is possible to login to
the other two nodes via ssh without password.

The rsync exclusion list is stored in a file having the following contents:
> cat /etc/lsyncd/rsync-exclude.txt
.ipc_in
.ipc_out
logs/
.scratch/
.nfs000*
lost+found/
Thumbs.db

If the above file contains at the end an extra newline with tab character

the following rsyncOps (--exclude-from explicitly set as a rsync option) works fine:

rsyncOps= {
"-ltspog",
"--numeric-ids",
"--bwlimit=10000",
"--exclude-from=/etc/lsyncd/rsync-exclude.txt"
}

The following setup doesn't work:

excludeFrom="/etc/lsyncd/rsync-exclude.txt",
rsyncOps= {
"-ltspog",
"--numeric-ids",
"--bwlimit=10000"
}

The service starts but no folder is monitored:

the file
/var/log/lsyncd-status.log

contains
"Inotify watching 0 directories"

instead of
"Inotify watching 3571 directories"