--delete-excluded not working on local rsync

jw schultz jw at pegasys.ws
Wed Nov 13 04:36:00 EST 2002


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.

-- 
________________________________________________________________
	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt



More information about the rsync mailing list