[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to "lock" repository during backup
From: |
Ben Kial |
Subject: |
Re: how to "lock" repository during backup |
Date: |
Sat, 27 Apr 2002 06:10:36 GMT |
But to make it really safe, I guess I will have to make sure there is
no outstanding CVS sessions that are already started before I try
to imposed the "lock" (through the writers file), right??
Ben
"Robert J. Clark" <address@hidden> wrote in message
news:address@hidden
> 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, 2002/04/23
Message not available
- Re: how to "lock" repository during backup,
Ben Kial <=