[KLUG Members] rsync command question
Peter Buxton
members@kalamazoolinux.org
Mon, 5 May 2003 19:06:13 -0400
On Mon, May 05, 2003 at 09:04:55AM +0000, Jon Smitley wrote:
> user@Toast:/home/shared> rsync -v /home/shared user@Butter::/2g/syncdir
>
> ERROR: The remote path must start with a module name not a /
> rsync error: error starting client_server protocol (code5) at
> main.c(923)
Okay, you need to specify the modules (think transport) when using :: as
a separator.
Run:
rsync user@Butter::
to list the modules on butter. Modules are: ftp, sambaftp, rsyncftp,
sambawww, cvs, e.g.
> user@Toast:/home/shared> rsync -v /home/shared user@Butter:/2g/syncdir
One colon in the destination makes rsync think you're using rsh as a
transport.
> Butter: Connection refused
> rsync: connection unexpectedly closed (0 bytes read su far)
> rsync error: error in rsync protocol data stream (code12) at io.c(150)
> Question: I have rsync "server" running on both machines, is this
> correct or should I have one of them disabled.
That should be fine. You just need rshd on the remote machine. Uh, are
you connecting to 'rsync --daemon', rshd or sshd? For ssh:
rsync -v -e "ssh -l user"
--
-137