On Mon, 2008-12-15 at 12:11 +0100, Roman Fiedler wrote: > Roman Fiedler wrote: > > Matt McCutchen wrote: > >> On Fri, 2008-12-12 at 12:56 +0100, Roman Fiedler wrote: > >>> The goal is to sync two directories using rsync without running the > >>> rsync daemon on one of the two hosts... > > > > The additional args caused nc to fail. Also \x00 instead of # did not > > work. But following worked: > > > > * Server side: > > nc -vnlp 1235 -c 'rsync --server --sender -r . src' > > * Client side > > rsync -e './direct.sh' localhost:src dst > > with direct.sh: > > #!/bin/bash > > nc -v localhost 1235 > > > > The direct.sh just ignores any additional arguments. > > Just worked in the test-case, but not with real system. With real data, > rsync will sync some files and then terminate > > rsync: writefd_unbuffered failed to write 4092 bytes: phase "unknown" > [generator]: Broken pipe (32) > rsync error: error in rsync protocol data stream (code 12) at io.c(1099) > rsync error: received SIGUSR1 or SIGINT (code 20) at main.c(985)
Please spare yourself the pain of server-argument-related crashes by using a daemon. -- Matt -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html