I need to recursively copy a directory tree, ignoring any subdirectories named 'CVS'. Is there a simple way to do this?
rsync -av --exclude=CVS <src> <dst>
tar -cpf - --exclude=CVS directory | sh -c 'cd /wherever/it/goes && tar -xpf -'
Modify the right-hand tar
's options to -xvpf
if you'd like to see what's going on.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With