Hello.
I'm using rsync 2.6.9 on a Solaris 9 Sparc system. I invoke rsync like
this:
/opt/csw/bin/rsync --port=55873 -avPi winds06.win.ch.da.rtr::racebeta/xml \
winds06.win.ch.da.rtr::racebeta/xrfsharedresource \
/opt/apps/Teamcenter/Production/racebeta
But this results in an error message:
receiving file list ...
12 files to consider
rsync: mkdir
"/opt/apps/Teamcenter/Production/winds06.win.ch.da.rtr::racebeta/xrfsharedresource"
failed: No such file or directory (2)
rsync error: error in file IO (code 11) at main.c(529) [receiver=2.6.9]
When I do a
mkdir
"/opt/apps/Teamcenter/Production/winds06.win.ch.da.rtr::racebeta/xrfsharedresource"
all is "well". When I run rsync again, files are copied to this
directory.
BUT:
a) Why did the mkdir from rsync fail?
b) Why does rsync copy files to this directory in the first place? That's
not what I want. I want all the files to be copied to
/opt/apps/Teamcenter/Production/racebeta. Why does that not happen?
Thanks a lot,
Alexander Skwar
On 10/17/07, Alexander Skwar <listen@alexander.skwar.name> wrote:> /opt/csw/bin/rsync --port=55873 -avPi winds06.win.ch.da.rtr::racebeta/xml \ > winds06.win.ch.da.rtr::racebeta/xrfsharedresource \ > /opt/apps/Teamcenter/Production/racebeta> b) Why does rsync copy files to this directory in the first place? That's > not what I want. I want all the files to be copied to > /opt/apps/Teamcenter/Production/racebeta. Why does that not happen?To pull multiple files from a remote host using rsync older than 3.0.0, you need to list the paths space-separated in a single argument, like this: rsync ... 'winds06.win.ch.da.rtr::racebeta/xml racebeta/xrfsharedresource' /opt/apps/Teamcenter/Production/racebeta When you used two separate arguments, rsync assumed that the first was the source and the second was the (local) destination. Matt