[KLUG Members] rsync command question
Jon Smitley
members@kalamazoolinux.org
Fri, 2 May 2003 14:09:54 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_000B_01C310B4.80FFA0A0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Scenario -=20
Box 1 - Domain - Toast
Directory to be sync'ed - /home/shared
is the local machine
Box 2 - Domain - Butter
Directory to receive sync - /2g/syncdir
is the remote machine
rsync is installed on both machines. Toast is a Suse8.1 Pro, Butter is =
Suse8.2 Pro. rsync server is running on both machines.
Both machines have identical users/passwds. I can ssh, scp, sftp =
between the machines both directions no problems. So I believe I am not =
getting the syntax of the command correct (as Bruce showed me that my =
scp syntax was incorrect, and that was why I could get it to work).
user@Toast:/home/shared> rsync /home/shared user@Butter:/2g/syncdir
ERROR: the remote server path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at =
main.c(923)
user@Toast:/home/shared> rsync /home/shared user@Butter::/2g/syncdir
Same error as above.
user@Toast:/home/shared> rsync user@Toast:/home/shared =
user@Butter:/2g/syncdir
Toast: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync: error in the rsync protocol data stream (code 12) at =
io.c(150)
user@Toast:/home/shared> rsync . user@Butter::/2g/syncdir
ERROR: the remote server path must start with a module name not a /
rsync error: error starting client-server protocol (code 5) at =
main.c(923)
user@Toast:/home/shared> rsync . user@Butter:/2g/syncdir
Butter: Connection refused
rsync: connection unexpectedly closed (0 bytes read so far)
rsync: error in the rsync protocol data stream (code 12) at =
io.c(150)
If syntax is all the problem I'm having, it would be a beautiful thing.
Thanks, Jon
Minding of Madness
------=_NextPart_000_000B_01C310B4.80FFA0A0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Scenario - </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Box 1 - Domain - Toast</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
Directory to be sync'ed - /home/shared</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
is the local machine</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Box 2 - Domain - Butter</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
Directory to receive sync - /2g/syncdir</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
is the remote machine</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>rsync is installed on both machines. Toast is a Suse8.1 Pro, Butter =
is=20
Suse8.2 Pro. rsync server is running on both machines.</DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Both machines have identical =
users/passwds. I=20
can ssh, scp, sftp between the machines both directions no =
problems. So I=20
believe I am not getting the syntax of the command correct (as Bruce =
showed me=20
that my scp syntax was incorrect, and that was why I could get it to=20
work).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>user@Toast:/home/shared> rsync =
/home/shared <A=20
href=3D"mailto:user@Butter:/2g/syncdir">user@Butter:/2g/syncdir</A></FONT=
></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> ERROR: the remote =
server path=20
must start with a module name not a /</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> rsync error: error =
starting=20
client-server protocol (code 5) at main.c(923)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>user@Toast:/home/shared> rsync =
/home/shared=20
</FONT><A href=3D"mailto:user@Butter::/2g/syncdir"><FONT face=3DArial=20
size=3D2>user@Butter::/2g/syncdir</FONT></A></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Same error as=20
above.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>user@Toast:/home/shared> rsync <A=20
href=3D"mailto:user@Toast:/home/shared">user@Toast:/home/shared</A> =
</FONT><A=20
href=3D"mailto:user@Butter:/2g/syncdir"><FONT face=3DArial=20
size=3D2>user@Butter:/2g/syncdir</FONT></A></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> Toast: Connection=20
refused</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> rsync: connection =
unexpectedly=20
closed (0 bytes read so far)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> rsync: error in the =
rsync=20
protocol data stream (code 12) at io.c(150)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>user@Toast:/home/shared> =
rsync . <A=20
href=3D"mailto:user@Butter::/2g/syncdir">user@Butter::/2g/syncdir</A></FO=
NT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> ERROR: the remote =
server path=20
must start with a module name not a /
<DIV><FONT face=3DArial size=3D2> rsync error: error =
starting=20
client-server protocol (code 5) at main.c(923)</FONT></DIV>
<DIV> </DIV>
<DIV>user@Toast:/home/shared> rsync . <A=20
href=3D"mailto:user@Butter:/2g/syncdir">user@Butter:/2g/syncdir</A></DIV>=
<DIV> </DIV>
<DIV> Butter: Connection refused
<DIV><FONT face=3DArial size=3D2> rsync: connection =
unexpectedly=20
closed (0 bytes read so far)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> rsync: error in the =
rsync=20
protocol data stream (code 12) at io.c(150)</FONT></DIV>
<DIV> </DIV>
<DIV>If syntax is all the problem I'm having, it would be a beautiful=20
thing.</DIV>
<DIV> </DIV>
<DIV>Thanks, Jon</DIV>
<DIV>Minding of Madness</DIV></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_000B_01C310B4.80FFA0A0--