From owner-freebsd-questions@FreeBSD.ORG Sat Aug 28 23:01:06 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 B86071065693 for ; Sat, 28 Aug 2010 23:01:06 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 978D58FC1A for ; Sat, 28 Aug 2010 23:01:06 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id o7SN0wlj014966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 28 Aug 2010 16:00:58 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id o7SN0wbp014965; Sat, 28 Aug 2010 16:00:58 -0700 (PDT) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA23972; Sat, 28 Aug 10 15:59:45 PDT Date: Sat, 28 Aug 2010 15:59:25 -0700 From: perryh@pluto.rain.com To: freebsd@edvax.de Message-Id: <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> In-Reply-To: <20100828203618.45fd6be8.freebsd@edvax.de> User-Agent: nail 11.25 7/29/05 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Aug 2010 23:01:06 -0000 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 :) and it might as well be compressed, something like: # cd /usr # tar cf - ports | gzip > /var/tmp/ports.tgz