rsync 2.6.8 copies directories but not files

Bill Gunter bgunter at
Wed Jun 7 21:47:01 GMT 2006

I'm using a somewhat complicated --include/exclude chain to copy all
files matching a pattern, plus all files in certain subdirs.

/usr/local/bin/rsync -a 
  --include='*/' --include='*.[wip]' 
  --include='*.htm' --include='*.html' --include='*.off'
  --include='wwwroot/*' --include='perl/*' 

This almost works. All files matching *.[wip], *.htm, *.html, *.off in
all subdirs of newcode/ are copied, as are all subdirs. However, of the
files not matching the above patterns in wwwroot/ and perl/, only the
ones in the root of those two directories are copied. Files in subdirs
of wwwroot/ and perl/ are NOT copied.  e.g. after running the above
command on /tmp/test/newcode, which looks like this:


to /tmp/test/checkpt8, I get this:


All the subdirs of wwwroot/ are copied, but only foo.gif and crap.p are
copied. prod1/images/foo47.gif is not copied.

This is very strange.

Bill Gunter 
Assistant Director of Information Systems 
ARC Systems 
P: 512.358.5377 
F: 512.892.5552 

More information about the rsync mailing list