axkibe/lsyncd — Issue #92: lsyncd ignores "--filter" command in rsyncOpts for rsyncssh (and maybe rsync)
Author: axkibe
Created: 2011-11-16 15:12:14+00:00
State: open
Labels: Type-Defect

Originally filed by andy.pi...@gmail.com on 2011-11-03T14:45:29

I have configured lsyncd with the following 'sync' settings:

sync{
default.rsyncssh, source = "/home/piper/src/",
host = "piperdev",
targetdir = "lsyncd/src/",
rsyncOpts = {"-lts", "--filter='. /home/piper/etc/rsync.filter'"}
}

The rsync filter file specified by the --filter option preserves build-output from being deleted (basically everything under the direcotry "src/build" on the target host).

When I run lsyncd with "-log all", I see this in the output:

14:28:27 Exec: /usr/bin/rsync [--delete] [-r] [-lts] [/home/piper/src/] [piperdev:src/]

So the "--filter" option in rsyncOpts is being ignored, and my build output is hence deleted by the sync.

I am running lsyncd 2.0.4, on an Ubuntu 10.10 host with a FreeBSD 7.3 target.