Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2002 10:59:32 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Nils Holland <nils@tisys.org>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: CVSup question
Message-ID:  <20020109085931.GC11301@hades.hell.gr>
In-Reply-To: <20020106121922.A2419@tisys.org>
References:  <20020106121922.A2419@tisys.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-01-06 12:19:22, Nils Holland wrote:
> Hi folks,
>
> well, I just ran CVSup via my modem connection, and unluckily, due to line
> conditions, my connection was dropped right in the middle of it. I then
> interrupted CVSup, re-dialed and started over again. Everything seemed to
> work fine, but I wonder if CVSup is actually capable of dealing well with
> such interruptions. I mean, is it possible that due to the dropped
> connection, some inconsistencies may have been created in my local sources,
> or will CVSup just have fixed anything that might have been wrong when I
> ran it the second time?

Yup, it works nicely even if interrupted in "violent" ways.
In my /etc/crontab I have a line that reads:

    # run CVSup to update the local mirror of FreeBSD sources
    7       *       *       *       *       ncvs    /home/ncvs/update.sh

and the script /home/ncvs/update.sh checks to see if it can reach
cvsup.gr.freebsd.org (i.e. I am online), before firing CVSup to update
a local mirror of the CVS repository.

Since my connection is rather slow, I find that at times, this makes
things unbearably slow for me.  A quick 'su -' and 'killall -9' stops
the running cvsup process instantly, and the next hourly update starts
without problems a little over an hour later.

The way that CVSup checks to see if a file needs to be updated (with
revision checks and checksums of the files) makes sure that if a file
is 'in the middle of an update', the next CVSup run that will complete
uninterrupted will do the Right Thing(TM).

- Giorgos


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020109085931.GC11301>