--exclude and --delete ?
jw schultz
jw at pegasys.ws
Mon Apr 21 16:53:55 EST 2003
On Mon, Apr 21, 2003 at 11:45:59AM +0500, Dmitry Melekhov wrote:
> Hello!
>
> 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
Exclude PATTERNS are relative. Or are you really trying to
exclude /home/dm/rsync/home/dm/rsync/rsync?
And don't forget --force and --delete-excluded.
> 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 ;-)
--
________________________________________________________________
J.W. Schultz Pegasystems Technologies
email address: jw at pegasys.ws
Remember Cernan and Schmitt
More information about the rsync
mailing list