lmi
[Top][All Lists]
Advanced

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

[lmi] Repository mirroring


From: Greg Chicares
Subject: [lmi] Repository mirroring
Date: Fri, 12 Jun 2009 12:07:30 +0000
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

The savannah hackers were able to recover almost completely from
the recent problems:
  http://lists.gnu.org/archive/html/savannah-users/2009-06/msg00052.html
but it's a good idea to mirror everything ourselves anyway. The
following commands work with our current cvs repositories, and
should need little adaptation when we convert to svn. I might
eventually put them in some sort of script. Cygwin users, of
course, would need to install 'rsync' if they don't have it
already.

# Initial setup. Choice of directories is arbitary.

mkdir -p /lmi/checkouts/mirror/web/
mkdir -p /lmi/checkouts/mirror/sources/

# Routine synchronization.

rsync  --compress --cvs-exclude --delete --perms --recursive --stats --times 
--verbose rsync://cvs.sv.gnu.org/web/lmi/     /lmi/checkouts/mirror/web/     
2>&1 |less

rsync  --compress --cvs-exclude --delete --perms --recursive --stats --times 
--verbose rsync://cvs.sv.gnu.org/sources/lmi/ /lmi/checkouts/mirror/sources/ 
2>&1 |less

# Test by checking out HEAD.

# One might wish that cvs would create a lock directory itself...
mkdir -p /var/lock/cvs/sources/lmi

# 'cvs ... co -d ...' doesn't seem to work as advertised--hence pushd and popd

pushd /lmi/checkouts/tmp; cvs -d /lmi/checkouts/mirror/web/     co lmi; popd

pushd /lmi/checkouts/tmp; cvs -d /lmi/checkouts/mirror/sources/ co lmi; popd





reply via email to

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