Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 1996 09:07:03 +0200
From:      Mark Murray <mark@grondar.za>
To:        Chuck Robey <chuckr@glue.umd.edu>
Cc:        FreeBSD Ports <FreeBSD-Ports@freebsd.org>
Subject:   Re: using tar 
Message-ID:  <199608100707.JAA08037@grumble.grondar.za>

next in thread | raw e-mail | index | archive | help
Chuck Robey wrote:
> I want to use tar to move a directory hierarchy, but I want to do it
> without using a temp directory, and I don't know the syntax to make tar
> create an archive to stdout, then read from stdout to extract the acrchive
> elsewhere.  Anyone else know it?  I want to use it to transport something
> from usr/local (not /usr/local, thank goodness) to $(PREFIX).

I do it like this:

$ (cd /from/dir; tar cf -) | (cd /to/dir; tar xf -)

M
--
Mark Murray
46 Harvey Rd, Claremont, Cape Town 7700, South Africa
+27 21 61-3768 GMT+0200
Finger mark@grondar.za for PGP key



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