From owner-freebsd-questions@FreeBSD.ORG Wed Aug 26 02:37:08 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9541B106568B for ; Wed, 26 Aug 2009 02:37:08 +0000 (UTC) (envelope-from dhutty@allgoodbits.org) Received: from smtp.allgoodbits.com (allgoodbits.com [97.107.132.102]) by mx1.freebsd.org (Postfix) with ESMTP id 4EAA48FC2B for ; Wed, 26 Aug 2009 02:37:08 +0000 (UTC) Received: from mail.allgoodbits.org (pool-72-95-226-80.pitbpa.ftas.verizon.net [72.95.226.80]) by smtp.allgoodbits.com (Postfix) with ESMTP id 610024E803 for ; Tue, 25 Aug 2009 22:20:10 -0400 (EDT) Received: from localhost (mail.allgoodbits.org [127.0.0.1]) by mail.allgoodbits.org (Postfix) with ESMTP id EFD6ABA433 for ; Tue, 25 Aug 2009 22:20:09 -0400 (EDT) X-Virus-Scanned: amavisd-new at allgoodbits.org Received: from mail.allgoodbits.org ([127.0.0.1]) by localhost (mail.allgoodbits.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mv5qKxTx-Bra for ; Tue, 25 Aug 2009 22:20:09 -0400 (EDT) Received: from [192.168.0.200] (odysseus [192.168.0.200]) by mail.allgoodbits.org (Postfix) with ESMTPA id 34A15BA3F3 for ; Tue, 25 Aug 2009 22:20:09 -0400 (EDT) Message-ID: <4A949BD9.9010305@allgoodbits.org> Date: Tue, 25 Aug 2009 22:20:09 -0400 From: Duncan Hutty User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Trying to make a mirror for a disconnected lab X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Aug 2009 02:37:08 -0000 I'm planning to build a "lab" of perhaps 15 freebsd machines. Not only do I want to be a good sysadmin and only download what I need, but another issue is that these machines will live on a network that will not have a reliable connection to the internet. Therefore I want to build a mirror of parts of ftp.freebsd.org so that the lead machine (for each of 2 architectures) can build packages for the other machines to install. I think that if I mirror: ports/distfiles releases//-RELEASE then I think I will be able to install FreeBSD on each machine and build packages of anything from ports that I want to install on all the machines. And then for each individual machine set PKG_PATH to be the nfs served location from the main server. Therefore to make my mirror, I have a rsync filter file that looks something like this: + /ports/ + /ports/distfiles/ + /ports/distfiles/* + /releases/ + /releases/i386/ + /releases/i386/7.2-RELEASE/ + /releases/i386/7.2-RELEASE/* + /releases/i386/7.2-RELEASE/base/ + /releases/i386/7.2-RELEASE/base/* etc. - * Hopefully, someone can give me confidence that this is a reasonable plan? Or am I going about this wrongheadedly? I have a question: Q. ports/distfiles contains tarballs of multiple versions of each software; I assume that I only need one version of each tarball. And since this mirror as described comes to ~100GiB, how can I modify my rsync filter so I don't get anything more than either the latest tarball for each software package in distfiles or whichever version accords to the Makefiles provided by ports.tgz Hopefully some of this detail will be of help to someone else in a similar position. -- Duncan Hutty