In <4ca4be08.2858.00a...@cdpr.ca.gov>, on 09/30/10
   at 04:42 PM, "Ian Skinner" <iskin...@cdpr.ca.gov> said:

Hi,

>> + das/htdocs/docs/*
>> + em/htdocs/docs/*
>> etc.
>> + */
>> - *

>Thanks for the suggestion, but that did not seem to produce the desired
>results.  I did not look into why in detail, but a dry run produced files
>from directories I wanted to exclude and apparently not all the files I
>wanted to include.

Did you add --prune-empty-directorys to the command line?  This filter
setup along with --prune-empty-directories will copy only the files in the
named directores, which is my understanding of what you want.

>After a day of trail and error and internet searching I now have this
>that is really close.

Looks overly complex to me.  Taking your example layout and using this
filter set

+ das/htdocs/docs/*
+ em/htdocs/docs/*
+ enf/htdocs/docs/*
+ internal/htdocs/docs/*
+ itb/htdocs/docs/*
+ medtox/htdocs/docs/*
+ pml/htdocs/docs/*
+ psb/htdocs/docs/*
+ reg/htdocs/docs/*
+ whs/htdocs/docs/*
+ */
- *

and this command line

rsync --dry-run --prune-empty-dirs --itemize-changes -a -F export\ to\

I get

.d..t...... ./
cd+++++++++ home/
cd+++++++++ home/das/
cd+++++++++ home/das/htdocs/
cd+++++++++ home/das/htdocs/docs/
>f+++++++++ home/das/htdocs/docs/SHLNotes.txt
cd+++++++++ home/em/
cd+++++++++ home/em/htdocs/
cd+++++++++ home/em/htdocs/docs/
>f+++++++++ home/em/htdocs/docs/SHLNotes.txt

Which I think is what you want.  Every subdirectory contains a file.

Good luck,

Steven

-- 
----------------------------------------------------------------------
"Steven Levine" <stev...@earthlink.net>  eCS/Warp/DIY etc.
www.scoug.com www.ecomstation.com
----------------------------------------------------------------------

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to