Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2010 09:37:16 +0200
From:      Peter Boosten <peter@boosten.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: ports database
Message-ID:  <4C7A0E2C.5050705@boosten.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On 29-8-2010 0:59, perryh@pluto.rain.com wrote:
> Polytropon <freebsd@edvax.de> 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 :)

That's the case in the above example...

> and it might as well be compressed, something like:
> 
> # cd /usr
> # tar cf - ports | gzip > /var/tmp/ports.tgz

how about: tar zcf ports.tar.gz ports

;-)

Peter

-- 
http://www.boosten.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C7A0E2C.5050705>