Can't you use the parent of dir1 and dir2 and exclude any other ones you don't want? You'd have to know all
the dirs on bar:~foo.

Why not two commands? Performance?

Ed

Robert Citek wrote:


How can I rsync two folders on a remote site to my local machine?

Currently, I'm doing this using two rsync commands:

  rsync -a -e ssh [EMAIL PROTECTED]:dir1 .
  rsync -a -e ssh [EMAIL PROTECTED]:dir2 .

I'd like to use one command, but this doesn't work:

  rsync -a -e ssh [EMAIL PROTECTED]:dir{1,2} .

A read through the man page didn't turn up anything obvious. Any one have any ideas?

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent



_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/


--
Ed Howland
WDT Solutions, LLC.
[EMAIL PROTECTED]
(314) 962-0766


_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to