On 29-8-2010 0:59, [email protected] wrote:
> Polytropon <[email protected]> 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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to