On 2/12/07, Julian Pace Ross <[EMAIL PROTECTED]> wrote:
I'm using --files-from=FILE and in this case I do NOT want to recurse into
directories, so for example if FILE contains:
Dir1
Dir2
I just want the files in Dir1 and 2 to be copied, but not the files in
Dir1/Dir3/ for example.
Specify the directories with a trailing slash in FILE to make rsync
copy their immediate contents. Note that rsync will create a
directory Dir1/Dir3 on the destination (since it, too, is immediately
inside Dir1) but will not copy anything into it. If you don't want it
to create directories like Dir1/Dir3, add an exclude rule:
--exclude='/*/*/' .
Matt
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html