axkibe/lsyncd — Issue #67: default rsync option is broken ?
Author: axkibe
Created: 2011-11-16 15:07:11+00:00
State: open

Originally filed by tim.chip...@gmail.com on 2011-06-10T12:59:43

What steps will reproduce the problem?
======================================

1.enable pre-auth SSH via key between src,dst host
2.issue command as shown below
3. stock rsync (centOS 5.6) chokes on default rsync flags. Possible to implement more painless defaults, or acknowledge this known bork in the docs?

What is the expected output? What do you see instead?
=======================================================
This is what we see after issue command on src machine:

lsyncd -log all -nodaemon -rsyncssh /test root@gkc2.domain.com /test

kernels clocks_per_sec=100
Call: configure()
Inotify: inotify fd = 3
Call: initialize()
16:56:01 Function: Inotify.addWatch(/test/, (true), (nil), (nil))
16:56:01 Inotify: addwatch(/test/)->1
16:56:01 Function: Inotify.addWatch(/test/a/, (true), (nil), (nil))
16:56:01 Inotify: addwatch(/test/a/)->2
16:56:01 Function: Inotify.addWatch(/test/c/, (true), (nil), (nil))
16:56:01 Inotify: addwatch(/test/c/)->3
16:56:01 Function: Inotify.addWatch(/test/b/, (true), (nil), (nil))
16:56:01 Inotify: addwatch(/test/b/)->4
16:56:01 Normal: recursive startup rsync: /test/ -> root@gkc2.genieknows.com:/test/
16:56:01 Exec: /usr/bin/rsync [--delete] [-r] [-lts] [/test/] [root@gkc2.genieknows.com:/test/]
16:56:01 Call: getAlarm()
16:56:01 Debug: getAlarm returns: (false)
16:56:01 Masterloop: going into select (no timeout).
rsync: -lts: unknown option
rsync error: syntax or usage error (code 1) at main.c(1231) [client=2.6.8]
16:56:01 Call: collectProcess()
16:56:01 Delay: collected an event
16:56:01 Error: Failure on startup of '/test/'.
[root@gkc1 etc]#

Running a test on the target to confirm rsync option choke, we see:

[root@gkc2 test]# rsync -l -t -s
rsync: -s: unknown option
rsync error: syntax or usage error (code 1) at main.c(1231) [client=2.6.8]

What version of the product are you using? On what operating system?

Lsyncd ver 2.0.4; rsync is centos / RHEL 5.6 stock version (2.6.8)

Please provide any additional information below.