patrickpeng2091 / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

default rsync option is broken ? #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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.

Original issue reported on code.google.com by tim.chip...@gmail.com on 10 Jun 2011 at 12:59

GoogleCodeExporter commented 9 years ago
You need rsync version >= 3.0 

Or remove the "s" from default rsyncOps="-ltus" to rsyncOps="-ltu". But then it 
won't work with files with spaces in them. Its a rsync thing.

Original comment by axk...@gmail.com on 11 Jun 2011 at 2:31