How to exclude directories from source with --relative

David Favor david at davidfavor.com
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 ftp.funet.fi::CPAN /cpan-mirror/

Let me know what I'm missing.

Thanks.

-- 
Love feeling your best ever, all day, every day?
Click http://RadicalHealth.com/join for the easy way.


More information about the rsync mailing list