From owner-freebsd-ports Sun Aug 11 11:41:32 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA04302 for ports-outgoing; Sun, 11 Aug 1996 11:41:32 -0700 (PDT) Received: from po2.glue.umd.edu (po2.glue.umd.edu [129.2.128.45]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA04255 for ; Sun, 11 Aug 1996 11:41:13 -0700 (PDT) Received: from thurston.eng.umd.edu (thurston.eng.umd.edu [129.2.103.25]) by po2.glue.umd.edu (8.7.5/8.7.3) with ESMTP id OAA11838; Sun, 11 Aug 1996 14:40:28 -0400 (EDT) Received: from localhost (chuckr@localhost) by thurston.eng.umd.edu (8.7.5/8.7.3) with SMTP id OAA10286; Sun, 11 Aug 1996 14:40:28 -0400 (EDT) X-Authentication-Warning: thurston.eng.umd.edu: chuckr owned process doing -bs Date: Sun, 11 Aug 1996 14:40:28 -0400 (EDT) From: Chuck Robey X-Sender: chuckr@thurston.eng.umd.edu To: patl@asimov.volant.org cc: FreeBSD-Ports@freebsd.org Subject: Re: using tar In-Reply-To: <9608111740.AA01196@asimov.volant.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 11 Aug 1996 patl@asimov.volant.org 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). > |> > |> 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 You aren't the first person to point that method out (Joerg told me about it too) but I hadn't had any argument about it being 'arguably better'. Could/would you expand on that? > > > > -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/ > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@eng.umd.edu | communications topic, C programming, and Unix. 9120 Edmonston Ct #302 | Greenbelt, MD 20770 | I run Journey2 and n3lxx, both FreeBSD (301) 220-2114 | version 2.2 current -- and great FUN! ----------------------------+-----------------------------------------------