[linux-l] rsync

Tobias Schlottke toby at cpth.de
Di Feb 4 22:23:57 CET 2003


On Tue, 4 Feb 2003, Stephan Uhlmann wrote:
>
> Den Port per "rechner_b:12345" funktioniert bei rsync nicht. Wen du einen
> einfachen Doppelpunkt (:) benutzt, denkt rsync du willst die Remote-Shell
> (rsh) als Transportweg benutzen. Das scheint aber bei dir nicht installiert
> zu sein. Probiers mal mit
>
> rsync --port 12345 meineDatei rechner_b::/tmp

Danke, das war schon eine gute Idee.
Zwar erhalte ich so:

ERROR: The remote path must start with a module name not a /
rsync error: error starting client-server protocol
(code 5) at main.c(923)

Denn ebenm die andere Syntax:

rechner_a:tmp> rsync  --port 12345 meineDatei rsync//rechner_b/tmp/hallo
mkstemp rsync//rechner_b/tmp/.hallo.tSqGYE failed: No such file or directory
rsync error: partial transfer (code 23) at main.c(578)

Mmmmhhhh....
man mkstemp:
.....
       Don't use this function, use tmpfile(3) instead. It's bet­
       ter defined and more portable.
...

Ok, is wohl veraltet:
apt-get...
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, rsync is already the newest version


Ich hab auch noch die Syntax laut man page probiert:
rsync://[USER@]HOST[:PORT]/SRC [DEST]

danach kann ich auch den Port in der URL spezifizieren,
tut aber auch nicht:

rsync meineDatei rsync://rechner_b:12345/tmp

Failed to exec rsh : No such file or directory
rsync error: error in IPC code (code 14) at util.c(162)
rsync: connection unexpectedly closed (0 bytes read so far)
rsync error: error in rsync protocol data stream (code 12) at io.c(150)

Hattest Du ja auch schon vermutet. Seufz, es sieht aus,
als hätte das noch nie einer probiert.

Noch ne Idee?

Toby





Mehr Informationen über die Mailingliste linux-l