I need to recursively copy the directory tree, ignoring any subdirectories named "CVS". Is there an easy way to do this?
tar -cpf - --exclude=CVS directory | sh -c 'cd /wherever/it/goes && tar -xpf -'
Change the right tar options to -xvpf if you want to see what happens.
tar
-xvpf
rsync -av --exclude=CVS <src> <dst>
Why not approach it from a slightly different angle and check the files from CVS using the export command.
This will give you directories without any CVS artifacts.
https://fooobar.com/questions/857129/unable-to-chdir-or-not-a-git-archive