--delete-excluded not working on local rsync

Jon Gabrielson jon at directfreight.com
Wed Nov 13 17:32:00 EST 2002


I removed all the stars and the following still doesn't delete the
directories in /backupdir/usr/share/doc/

rsync --delete --delete-excluded -a -R --exclude="/proc/"
--exclude="/dev/" --exclude="/usr/share/doc/" --exclude="/backup*" / 
/backupdir/

Jon.

p.s.  I am running 'rsync  version 2.5.5  protocol version 26'


> Date: Tue, 12 Nov 2002 20:34:49 -0800
> From: jw schultz <jw at pegasys.ws>
> To: rsync at lists.samba.org
> Subject: Re: --delete-excluded not working on local rsync
>
> On Tue, Nov 12, 2002 at 10:05:20PM -0600, Jon Gabrielson wrote:
> > I am using the following command and the excluded
> > directory /usr/share/doc/ still appears with all it's contents in the
> > backup directory when it's contents should be deleted. Is this a bug
> > or am I doing something wrong?
> >
> > rsync --delete --delete-excluded -a -R --exclude="/proc/*"
> > --exclude="/dev/*" --exclude="/usr/share/doc/*" --exclude="/backup*" /
> > /backupdir/
>
> You've excluded all files in /usr/share/doc/ not subdirs or
> /usr/share/doc/ itself.  If you want to exclude and delete
> /usr/share/doc use --exlude="/usr/share/doc/"  That will
> eliminate it and all subdirs.




More information about the rsync mailing list