On Mon, May 21, 2001 at 01:08:21PM +0200, Lasse Andersson wrote:
>
>
> Hi,
>
> If I use rsync of a smaller set of files the "--delete" option delete
> files on the recieving side.
>
> But I can not get this to work on big set of files (In this case I try to
> rsync a whole machine "/").
>
> Version of rsync on both sides are 2.4.6
> Sender: Solaris 2.6
> Reciever: FreeBSD 4.1.1
>
> Command used is :
>
> /opt/bin/rsync -vazR --timeout=2400 --bwlimit=500 --numeric-ids \
> --exclude-from=/opt/etc/rsync-exclude.list \
> --delete --delete-excluded \
> -e '/opt/bin/ssh -i /.ssh/identity.rsync -l root -C -x' \
> / recieving-host:/rsync-dest-dir/
>
>
> No files or directories get's deleted on the recievers side.
>
> Maybe I missed something?
>
> Help appreciated.
It's probably not the length of the list that's making the difference,
you're probably running into an I/O error which by default disables
deletions. This is mentioned under "--delete" in the man page, but I just
noticed that the man page doesn't explain there that you can have it delete
anyway by using the "--ignore-errors" option. It's a bit dangerous to use
--ignore-errors because if there is a serious error you may end up deleting
things you don't want to, so perhaps you can go and correct the error
instead. Some people have requested that rsync distinguish between different
kinds of errors; for example, a permissions error perhaps shouldn't cause
deletions to stop. I'm not sure what I think about that, because I can
imagine some scenarios where a permissions error could cause a delete
disaster.
- Dave Dykstra