axkibe/lsyncd — Issue #10: lsyncd fails on rsync versions not supporting -d option
Author: axkibe
Created: 2011-11-16 14:55:46+00:00
State: open

Originally filed by davide.r...@gmail.com on 2009-11-05T09:58:29

What steps will reproduce the problem?
Try to sync with a rsync version that doesn't support -d option (eg. < 2.6.4).

What is the expected output? What do you see instead?
During normal operations, directories should sync, but the following output
is generated:

rsync: on remote machine: -ldtp: unknown option
rsync error: syntax or usage error (code 1) at main.c(1002)
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(600)
[sender=3.0.6]

What version of the product are you using? On what operating system?
lsyncd 1.26
rsync 3.0.6 on source machine
rsync 2.6.2 on remote machine

Please provide any additional information below.
Initial sync works as expected (lsyncd uses -r during startup). I'm tempted
to always add -r option in lsyncd configuration file, but I'm not sure if
it can cause bad side effects. After all lsyncd uses -d for a reason, isn't it?