How to exclude directories from source with --relative

David Favor david at
Wed May 28 11:28:57 GMT 2008

I must be missing something. I've tried many different combos
of args and still can't get --exclude to work.

I'm mirroring CPAN and desire to exclude all subdirs/files in
the src directory. Here's the arg list I'm using:

     /usr/bin/rsync -av --delete --exclude '/src/***' --no-implied-dirs \
        --delete-excluded --prune-empty-dirs /cpan-mirror/

Let me know what I'm missing.


Love feeling your best ever, all day, every day?
Click for the easy way.

More information about the rsync mailing list