From owner-freebsd-questions@FreeBSD.ORG Tue Aug 23 15:26:32 2011 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 B294B106567E for ; Tue, 23 Aug 2011 15:26:32 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (mx1.psconsult.nl [80.89.238.138]) by mx1.freebsd.org (Postfix) with ESMTP id 399708FC2D for ; Tue, 23 Aug 2011 15:26:31 +0000 (UTC) Received: from mx1.psconsult.nl ([80.89.238.138]) by mx1.psconsult.nl (8.14.4/8.14.4) with ESMTP id p7NFQOvP016503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Aug 2011 17:26:30 +0200 (CEST) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.4/8.14.4/Submit) id p7NFQOGP016502; Tue, 23 Aug 2011 17:26:24 +0200 (CEST) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Tue, 23 Aug 2011 17:26:24 +0200 From: Paul Schenkeveld To: freebsd-questions@freebsd.org Message-ID: <20110823152624.GA4573@psconsult.nl> References: <20110819141030.GA31338@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110819141030.GA31338@psconsult.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Peter Andreev , Johan Hendriks Subject: Re: freebsd-update, fetch once upgrade many machines 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: Tue, 23 Aug 2011 15:26:32 -0000 On Fri, Aug 19, 2011 at 04:10:30PM +0200, Paul Schenkeveld wrote: > Hi, > > Is it possible to fetch files needed for freebsd-update once and put > them on a local fileserver to update many machines? Thanks for the pointers on how to set up my own build servers for freebsd-update but I'm not really interested in building locally, I just want to mirror the releases and patches that we're interested in locally and point freebsd-update at my local mirror. Meanwhile I've been reading parts of the freebsd-update script to see how updates are distributed. It looks like stuff gets moved around in /var/db/freebsd-update during the whole process and what exactly gets downloaded depends on what's installed on the machine fetching the files. Ideally I'd like to be able to do something like: 'wget -r http://update.freebsd.org/x.y-RELEASE/amd64' to fill my cache, even if x.y is a lower release number than the current release that my mirror server runs at, i.e. on a 8.2-R server I'd like to mirror updates for servers I'd like to upgrade from 7.2 to 7.4. > The reason for asking is that all these machines are on secure > networks and are not allowed to have Internet access but can all > access a common fileserver (using FTP, HTTP, SSH but not NFS). > > I can safely assume that all these machines run the same version of > FreeBSD, installed from binary distributions, GENERIC kernel and only > upgraded using freebsd-update. Thanks, Paul Schenkeveld