User:Bhearsum:Build/Buildserver ref image: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(WIP)
 
mNo edit summary
Line 1: Line 1:
<span style="font-size: 150%">WIP</span>
= Buildserver Ref Image =
= Buildserver Ref Image =
This document describes how to create a "Build server" ref image. More info is in [https://bugzilla.mozilla.org/show_bug.cgi?id=385911 bug#385911].
This document describes how to create a "Build server" ref image. More info is in [https://bugzilla.mozilla.org/show_bug.cgi?id=385911 bug#385911].
Line 46: Line 48:
  mkdir -p /cvs/var/lock
  mkdir -p /cvs/var/lock
  adduser cvsd
  adduser cvsd
== Rsync cvs-mirror.m.o ==
These instructions taken from [[How to Create a CVS Mirror]]:
=== Create a directory for the repository ===
mkdir /cvs/cvsroot
=== Add that directory to your cvsd.conf ===
echo "/cvsroot" >> /etc/cvsd/cvsd.conf
=== Create an 'rsync-excludes' file to ignore history, users ===
echo "CVSROOT/passwd" > /cvs/etc/rsync-excludes
echo "CVSROOT/writers" >> /cvs/etc/rsync-excludes
echo "CVSROOT/history" >> /cvs/etc/rsync-excludes
echo "CVSROOT/history*" >> /cvs/etc/rsync-excludes
=== Copy this script that will perform an rsync of the Mozilla CVS ===
/etc/init.d/cvsd stop
rsync -q -az --delete --exclude-from=/cvs/etc/rsync-excludes cvs-mirror.mozilla.org::mozilla /cvs/cvsroot
/etc/init.d/cvsd start
If you want to continually update your mirror you should create a cron job to do so. Otherwise you can run the above script at any time to do it manually.
canmove, Confirmed users
6,441

edits

Navigation menu