[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:
<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
- how to "lock" repository during backup, Ben Chang, 2002/04/23
- Re: how to "lock" repository during backup, John, 2002/04/23
- Re: how to "lock" repository during backup, Ben Chang, 2002/04/23
- Re: how to "lock" repository during backup, John, 2002/04/23
- Re: how to "lock" repository during backup, John, 2002/04/24
- Re: how to "lock" repository during backup, Jesús M. NAVARRO, 2002/04/24
- Re: how to "lock" repository during backup, John, 2002/04/24
- Re: how to "lock" repository during backup, Larry Jones, 2002/04/24
Re: how to "lock" repository during backup,
Robert J. Clark <=
Message not available