From owner-freebsd-questions@FreeBSD.ORG Sun Aug 29 13:07:47 2010 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 B38BF10656C2 for ; Sun, 29 Aug 2010 13:07:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 72FB78FC19 for ; Sun, 29 Aug 2010 13:07:47 +0000 (UTC) Received: from r55.edvax.de (port-92-195-116-86.dynamic.qsc.de [92.195.116.86]) by mx01.qsc.de (Postfix) with ESMTP id 798F63D1DD; Sun, 29 Aug 2010 15:07:44 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o7TD7iqm001484; Sun, 29 Aug 2010 15:07:44 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 29 Aug 2010 15:07:44 +0200 From: Polytropon To: perryh@pluto.rain.com Message-Id: <20100829150744.1a29c3d8.freebsd@edvax.de> In-Reply-To: <4c7994cd.zZBjSuPFSUYKdCmf%perryh@pluto.rain.com> References: <874453.45134.qm@web52302.mail.re2.yahoo.com> <20100826215346.7aaba141.freebsd@edvax.de> <20100828170745.GA88025@guilt.hydra> <20100828203618.45fd6be8.freebsd@edvax.de> <4c7994cd.zZBjSuPFSUYKdCmf%perryh@pluto.rain.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: ports database X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2010 13:07:47 -0000 On Sat, 28 Aug 2010 15:59:25 -0700, perryh@pluto.rain.com wrote: > Polytropon wrote: > > > > tar -cf ports.tar /usr/port > > > > It should be, better suited: > > > > # cd /usr > > # tar cf ports.tar ports > > > > So one could do "tar xf ports.tar" in the target machine's /usr > > ... > > Better put the created tarfile somewhere other than in the directory > that is being tarred :) In thic case, the tarfile is created outside ports/, so it's not within the directory it is created in. But of course it's right: the resulting archive can be better picked up from a directory like /tmp, it should just have enough space available (allthough a compressed ports tree should be less than 500 MB). > and it might as well be compressed, something like: > > # cd /usr > # tar cf - ports | gzip > /var/tmp/ports.tgz That is possible - if space is an issue (and not time); it is also possible to do like this: # cd /usr # tar cjf /tmp/ports.tar.bz2 ports I think it will even be better compression ratio using the BZip2 algorithm (tar option j instead of z). One thing worth mentioning: The ports tree should be "clean" before transfering (which is not a problem if it has just been fetched). If you have already worked with it, make sure to have been running # make clean in the ports main directory, or simply delete all work/ subdirs that might contain tons of files not needed. The directories ports/distfiles/ and ports/packages should also be checked. As they contain compressed stuff, compressing them won't be much helpful. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...