ports database
Peter Boosten
peter at boosten.org
Sun Aug 29 07:37:32 UTC 2010
On 29-8-2010 0:59, perryh at pluto.rain.com wrote:
> Polytropon <freebsd at 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
More information about the freebsd-questions
mailing list