Recursive filetype include

Max Bowsher maxb at ukf.net
Sat Mar 15 09:49:03 EST 2003


Mark Palatucci wrote:
> Hello,
>
> I have a directory tree that contains many files of type .htm. I don't
> want these when I rsync - so I used the option --exclude '*.htm'
>
> There is however, one subdirectory (and all of its subdirectories)
> that I would like to include these .htm files.
>
> I tried using many variations of --include 'subdir/*.htm' but this
> does not seem to work. It includes the .htm's in the main subdirectory
> - but not any of its subdirectories.
>
> Is there anyway I can get rsync to recursively include this filetype
> for all the subdirectories of a subdirectory - yet exclude these types
> for all the other branches of the main directory tree?
>
> Any info would be most appreciated,

Please post your exact command line and a careful description of your
directory structure. You are certainly thinking along the right lines, but
without details, its hard to know why it isn't working for you.


Max.



More information about the rsync mailing list