Try quoting the file list like this:
rsync -e ssh source-box.xxxxx.com:'/var/qmail/control/file1 \
/var/qmail/control/file2 \
/var/qmail/control/file3 \
/var/qmail/control/file4' \
/var/qmail/control
Your shell on the remote system will split out the multiple names, but
locally it is part of the single "source" argument.
-Lee
---begin quoted text---> Delivered-To: rsync@lists.samba.org
> Reply-To: <jfield@aaaq.com>
> From: "Jeff Field" <jfield@aaaq.com>
> To: <rsync@lists.samba.org>
> Subject: transferring individual files question, pull vs. push
> X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
> X-BeenThere: rsync@lists.samba.org
> X-Mailman-Version: 2.0.8
> Date: Tue, 19 Mar 2002 12:55:39 -0600
>
> Can't seem to find the answer anywhere...
>
> I'm currently using an rsync script on the source box to transfer some
> individual files to the destination box...all works well. The script:
>
> rsync -e ssh \
> /var/qmail/control/file1 \
> /var/qmail/control/file2 \
> /var/qmail/control/file3 \
> /var/qmail/control/file4 \
> destination-box.xxxxx.com:/var/qmail/control
>
> Now, instead of "pushing" the files from the source box to the
destination
> box, I'd like to run a script on the destination box to
"pull" the files
> over from the source box. So far, I can get one file to come over by
doing:
>
> rsync -e ssh source-box.xxxxx.com:/var/qmail/control/file1
> /var/qmail/control
>
> however, I can't get *all* the individual files to come over with one
> command, as I can with the first script. I've tried to basically
reverse
> the first script (and a few variations), like:
>
> rsync -e ssh source-box.xxxxx.com:/var/qmail/control/file1 \
> source-box.xxxxx.com:/var/qmail/control/file2 \
> source-box.xxxxx.com:/var/qmail/control/file3 \
> source-box.xxxxx.com:/var/qmail/control/file4 \
> /var/qmail/control
>
> but I just can't get it to work nor can I find any good documentation
for
> what I want to do. Any ideas, anyone?
>
> Thanks in advance!
>
> Regards,
>
> Jeff
>
>
> --
> To unsubscribe or change options:
http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html
---end quoted text---
--
Lee Eakin - leakin@dfw.nostrum.com
"For most people, the perceived usefulness of a computer language is
inversely
proportional to the number of theoretical axes that the language attempts to
grind." -- Larry Wall