--exclude and --delete ?

Dmitry Melekhov dm at belkam.com
Mon Apr 21 16:45:59 EST 2003


Looks like --exclude and --delete can't work together or I'm doing 
something wrong?

If I do :

/usr/bin/rsync -r -p -o -g -l --delete --exclude=/home/dm/rsync/rsync 
/home/dm/rsync/ /home/dm/rsync1

Content of /home/rsync/rsync appears in /home/dm/rsync1/rsync :-(
If there is no --delete  rsync works OK, imho.

Is there any way to use --delete and --exclude together?
I need to change backup script today ;-)

More information about the rsync mailing list