On 29-8-2010 0:59, per...@pluto.rain.com wrote:
> Polytropon <free...@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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to