From owner-freebsd-ports Sun Aug 11 10:39:35 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA27597 for ports-outgoing; Sun, 11 Aug 1996 10:39:35 -0700 (PDT) Received: from phoenix.volant.org (root@phoenix.volant.org [205.179.79.193]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA27592 for ; Sun, 11 Aug 1996 10:39:33 -0700 (PDT) From: patl@asimov.volant.org Received: from asimov.volant.org (asimov.phoenix.volant.org [205.179.79.65]) by phoenix.volant.org (8.7.5/8.7.3) with SMTP id KAA01585; Sun, 11 Aug 1996 10:38:12 -0700 (PDT) Received: by asimov.volant.org (5.x/SMI-SVR4) id AA01196; Sun, 11 Aug 1996 10:40:38 -0700 Date: Sun, 11 Aug 1996 10:40:38 -0700 Message-Id: <9608111740.AA01196@asimov.volant.org> To: chuckr@glue.umd.edu Subject: Re: using tar Cc: FreeBSD-Ports@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Md5: nVsz/9U8+ft2ajGQgenPRQ== Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk |> > 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). |> |> cd |> tar cf - | ( cd ; tar xvfBp - ) An arguably better way to copy an entire directory tree within a single machine is: cd find . -depth -print | cpio -pdmv -Pat My opinions are my own. For a small royalty, they can be yours as well... Pat Lashley, Senior Software Engineer, Henry Davis Consulting patl@Phoenix.Volant.ORG http://Phoenix.Volant.ORG/