From owner-freebsd-stable@FreeBSD.ORG Sat Nov 14 20:16:49 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B029106568B for ; Sat, 14 Nov 2009 20:16:49 +0000 (UTC) (envelope-from cpghost@cordula.ws) Received: from fw.farid-hajji.net (fw.farid-hajji.net [213.146.115.42]) by mx1.freebsd.org (Postfix) with ESMTP id C1E078FC08 for ; Sat, 14 Nov 2009 20:16:48 +0000 (UTC) Received: from epia-2.farid-hajji.net (epia-2 [192.168.254.11]) by fw.farid-hajji.net (Postfix) with ESMTP id 69F1D34EF2; Sat, 14 Nov 2009 21:16:45 +0100 (CET) Date: Sat, 14 Nov 2009 21:16:45 +0100 From: cpghost To: Nikolay Tychina Message-ID: <20091114201645.GA56393@epia-2.farid-hajji.net> References: <4AFDF0AF.1090201@FreeBSD.org> <4AFEF726.2010200@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-stable@freebsd.org Subject: Re: how to mirror cvs or svn with rsync X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Nov 2009 20:16:49 -0000 On Sat, Nov 14, 2009 at 09:38:11PM +0300, Nikolay Tychina wrote: > Having a mirror accessible from our network for free would help users to get > sources for free. > Incoming traffic from Internet costs money, that's problem. So you need to mirror /usr/src, and not the whole repository with all its history, right? What I do here is to csup /usr/src on one reference machine every now and then, and then distribute that directory with rsync to all other 500+ machines inside. Actually, I do a little bit more: I compile the sources on the reference machine, and rsync /usr/obj to the other machines too, saving some 500+ buildworlds as well. I could nfs mount /usr/src and /usr/obj from the reference server to the internal machines, but I have enough diskspace there, and rsync is good enough for us. You could also explore a similar mechanism w.r.t. /usr/ports, /usr/local, /var/db/ports, /var/db/pkg etc..., if you want to save external bandwidth downloading ports and distfiles, or CPU cycles compiling all this on your internal machines. But this requires slightly more care, though it works quite well too. -cpghost. -- Cordula's Web. http://www.cordula.ws/