From owner-freebsd-questions@FreeBSD.ORG Fri Aug 28 17:38:16 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 6F20810656D5 for ; Fri, 28 Aug 2009 17:38:16 +0000 (UTC) (envelope-from seklecki@noc.cfi.pgh.pa.us) Received: from mx04.pub.collaborativefusion.com (mx04.pub.collaborativefusion.com [206.210.72.84]) by mx1.freebsd.org (Postfix) with ESMTP id 35B728FC1E for ; Fri, 28 Aug 2009 17:38:15 +0000 (UTC) Received: from [192.168.2.161] ([206.210.89.202]) by mx04.pub.collaborativefusion.com (StrongMail Enterprise 4.1.1.4(4.1.1.4-47689)); Fri, 28 Aug 2009 13:13:52 -0400 X-VirtualServerGroup: Default X-MailingID: 00000::00000::00000::00000::::320 X-SMHeaderMap: mid="X-MailingID" X-Destination-ID: freebsd-questions@freebsd.org X-SMFBL: ZnJlZWJzZC1xdWVzdGlvbnNAZnJlZWJzZC5vcmc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=noc.cfi.pgh.pa.us; s=noc_cfi_pgh_pa_us_key_dkim; l=1132; t=1251479632; i=@noc.cfi.pgh.pa.us; h=Subject:From:To:Cc: In-Reply-To:References:Content-Type:Date:Message-Id:Mime-Version: X-Mailer:Content-Transfer-Encoding; bh=CScu0Eixl5q4HT9JdwIhPDJo7 /E=; b=B4OFLgI1AzhWw8bLZ5NlTSZgYEZW3ARqNb22bT5MLRzSMD82pAuJ20Pee zf51uKKZKbxg6YbMcvzeqqEr0utV+uu7aGPkAhGu+i5ioMppAwtoD7blzOF279p7 3jxe1Ci From: "Brian A. Seklecki" To: Duncan Hutty In-Reply-To: <4A949BD9.9010305@allgoodbits.org> References: <4A949BD9.9010305@allgoodbits.org> Content-Type: text/plain Date: Fri, 28 Aug 2009 13:38:14 -0400 Message-Id: <1251481094.25573.1660.camel@soundwave.ws.pitbpa0.priv.collaborativefusion.com> Mime-Version: 1.0 X-Mailer: Evolution 2.26.3 (2.26.3-1.fc11) Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: 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: Fri, 28 Aug 2009 17:38:16 -0000 On Tue, 2009-08-25 at 22:20 -0400, Duncan Hutty wrote: > > 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 For this you want portsclean(8) "-D" argument. Prunes out unused/unneeded distfiles. There's probably a way to do it with rsync based on date or whatnot; but it gets tricky. Every iteration of your sync script will bring back what you prune out. 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 ~BAS > 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 >