Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Aug 2010 15:59:25 -0700
From:      perryh@pluto.rain.com
To:        freebsd@edvax.de
Cc:        freebsd-questions@freebsd.org
Subject:   Re: ports database
Message-ID:  <4c7994cd.zZBjSuPFSUYKdCmf%perryh@pluto.rain.com>
In-Reply-To: <20100828203618.45fd6be8.freebsd@edvax.de>
References:  <874453.45134.qm@web52302.mail.re2.yahoo.com> <20100826215346.7aaba141.freebsd@edvax.de> <20100828170745.GA88025@guilt.hydra> <20100828203618.45fd6be8.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 :)
and it might as well be compressed, something like:

# cd /usr
# tar cf - ports | gzip > /var/tmp/ports.tgz



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4c7994cd.zZBjSuPFSUYKdCmf%perryh>