rsync 2.6.8 copies directories but not files

Wayne Davison wayned at
Wed Jun 7 22:30:48 GMT 2006

On Wed, Jun 07, 2006 at 04:47:01PM -0500, Bill Gunter wrote:
>   --include='wwwroot/*' --include='perl/*' 
>   --exclude='*' 

The patterns 'wwwroot/*' and 'perl/*' only match items one level below
the matching directory, but no lower (unless they're matched by an
earlier rule, such as directories or .html files).  You should use
'wwwroot/**' and 'perl/**' to include all files below those dirs.


More information about the rsync mailing list