Rsync via two ssh tunnels possible (standard method mentioned k times not possible?)

Matt McCutchen matt at mattmccutchen.net
Wed Dec 17 16:51:10 GMT 2008


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



More information about the rsync mailing list