From owner-freebsd-questions@FreeBSD.ORG Sat Oct 26 06:57:52 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 5E37D79 for ; Sat, 26 Oct 2013 06:57:52 +0000 (UTC) (envelope-from illoai@gmail.com) Received: from mail-pb0-x22f.google.com (mail-pb0-x22f.google.com [IPv6:2607:f8b0:400e:c01::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 376CC2C02 for ; Sat, 26 Oct 2013 06:57:52 +0000 (UTC) Received: by mail-pb0-f47.google.com with SMTP id rq2so4314931pbb.20 for ; Fri, 25 Oct 2013 23:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/f7DUdG+MgPOU5ODnAghAV8hZfM+ApZu7E5gdt7OO/A=; b=uCVsz9f1OAEmW/S7yeTmJnhpRJlHbckR1Sma0f6PG4nmdnPh2oq/y3rCiCPm4JQEKH k2WZdCJRcZleq/YRhc8DqoRC26TN12Pq+ze09NDXlyMaiDCZgYSc2cEFFxnrIs9sFb/D xhNg7BobsFeJYQc4BS7IankIIMFRQo/kwQEKDNLjFg+DUYrnG9cxXGroFJkVQIgAWwiN ZaU76poUGZAUXkAGVpnxvqyHJUrBquXDb+E0NDSCP69HXvOUpUwUDwccf3KARoAI3SJt J8bkRwbQSr/2IDOWtbrKJzDQvG5plummXUqRI8fuPH9tZ3/7pCGcaDS681+lphfVmf6f Wqaw== MIME-Version: 1.0 X-Received: by 10.68.143.196 with SMTP id sg4mr16544pbb.155.1382770670503; Fri, 25 Oct 2013 23:57:50 -0700 (PDT) Received: by 10.68.218.136 with HTTP; Fri, 25 Oct 2013 23:57:50 -0700 (PDT) In-Reply-To: <526AE110.9030105@networktest.com> References: <526AC748.6010805@networktest.com> <526AE110.9030105@networktest.com> Date: Sat, 26 Oct 2013 02:57:50 -0400 Message-ID: Subject: Re: (de)centralized ports management with portsnap From: "illoai@gmail.com" To: David Newman Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2013 06:57:52 -0000 On 25 October 2013 17:22, David Newman wrote: > On 10/25/13 2:18 PM, illoai@gmail.com wrote: >> On 25 October 2013 15:32, David Newman wrote: >>> I'm setting up a group of FreeBSD servers that use 'portsnap fetch' and >>> then 'portsnap update' to refresh their ports trees. >>> >>> Can I set up a local master to avoid pulling updates multiple times? If >>> portsnap isn't the right tool for this, what is? >>> >>> Apologies if this has been asked before; this seems like a standard >>> problem, but I didn't see an answer in a web search, the portsnap >>> manpage, or in the Michael W. Lucas FreeBSD book. >> >> It's probably simplest to simply pull with one machine & then use >> rsync or some such to push the updates out to the client machines >> which would then run "portsnap update" as needed. > > Thanks. What directories would get rsync'd over for the updates? Is it > really as simple as just copying over /usr/ports to each machine? > Distfiles become unwieldy after a while, but, yes, copying /usr/ports would work fine, as would copying /var/db/portsnap. I'm not sure which would have a lower headache factor. Using rsync to copy the whole ports tree will involve a lot of checking. Copying the portsnap directory, while much lighter/simpler, will involve running 'portsnap update' on each of the machines, though. -- --