[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to "lock" repository during backup

From: Robert J. Clark
Subject: Re: how to "lock" repository during backup
Date: Tue, 23 Apr 2002 19:51:00 -0400

On 23 Apr 2002 11:38:01 -0700
address@hidden (Ben Chang) wrote:

> I wrote a ksh script to back up (tar then gzip) the repository. Does
> anybody know how I can safely "lock" the entire repository for the
> duration of my backup? Most of the CVS users are on NT and are using
> :pserver to connect to a Solaris CVS server box. Below is some info
> about my setup.
> OS: SunOS 5.7
> CVS: 1.11.1p1 (client/server)

Hmmm. I guess the hard way would be to read up on CVS locks here:


and add a couple of hundred lines to your script.

I would go for a quick hack instead:

    Create a file called writers in the CVSROOT directory that contains
    only the user id of the person doing the backup. This will prevent
    write access to anybody not listed in that file. Once the backup
    is done, remove this file.

    <> for details about
    the readers and writers files.

- Rob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]