On 23 Apr 2002 11:38:01 -0700
[EMAIL PROTECTED] (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:

   <http://www.loria.fr/~molli/cvs/doc/cvs_2.html#IDX70>

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.

    <http://www.cvshome.org/docs/manual/cvs_2.html#SEC36> for details about
    the readers and writers files.

- Rob

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to