> Notice that the file "testDir/testSubDir/subtest9.txt" is skipped. I can't
> seem to get it to copy over to the destination directory of
> "/usr/local/apache/htdocs-www-live".
The problem is that rsync is never getting to the directory containing
subtest9.txt as you have excluded testDir/ and testDir/testSubDir/
A quick fix would be to include "*/" which means all directories would
be transferred, but that will also mean that the whole directory tree
will get created at the other end. If you don't want that then you'll
need to explicitly include the directories you want.
I would consider a patch that made the include code include tesDir/
and testDir/testSubDir/ when specifying the name
testDir/testSubDir/subtest9.txt, the current behaviour certainly can
confuse people.