Excluding two subdirectories in rsync

Christopher K. Johnson ckjohnson at gwi.net
Tue Aug 25 13:26:38 UTC 2009


Robert Moskowitz wrote:
> I have been using an rsync for Centos updates like:
>
> rsync -auv rsync://mirrors..../updates/i386/ --delete --exclude=debug/ 
> /repos/centos/updates/i386
>
>
> But for Fedora 11, I see there is a drpms subdirectory that I ASSuME I 
> don't need, drpms.
>
> How do I exclude two subdirectories?  I can't figure it out from the 
> man pages.
>
> --exclude="debug/ drpms/"   ???
>
>
Add another --exclude instead.
rsync -auv rsync://mirrors..../updates/i386/ --delete --exclude=debug/ 
--exclude=drpms/ /repos/centos/updates/i386




More information about the fedora-list mailing list