From owner-freebsd-ports Sun Aug 11 22:21:10 1996 Return-Path: owner-ports Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA01750 for ports-outgoing; Sun, 11 Aug 1996 22:21:10 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id WAA01744 for ; Sun, 11 Aug 1996 22:21:07 -0700 (PDT) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id HAA28140; Mon, 12 Aug 1996 07:21:03 +0200 Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id HAA09136; Mon, 12 Aug 1996 07:21:03 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id HAA03287; Mon, 12 Aug 1996 07:16:26 +0200 (MET DST) From: J Wunsch Message-Id: <199608120516.HAA03287@uriah.heep.sax.de> Subject: Re: using tar To: chuckr@glue.umd.edu (Chuck Robey) Date: Mon, 12 Aug 1996 07:16:26 +0200 (MET DST) Cc: darrylo@hpnmhjw.sr.hp.com, FreeBSD-Ports@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from Chuck Robey at "Aug 11, 96 03:12:48 pm" X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-ports@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Chuck Robey wrote: > > I don't know if I'd call it better, but it does have the optional > > advantage of being easy to filter/limit the files being copied... > Tar does that same thing, on the command line without sed. More comments > on why it's better ? Not really, since find allows for a much finer control about its selection. I occasionally use both, tar and cpio (since our tar does also handle `weird' i-nodes), and i think it's just the flexibility of find that makes me prefer cpio sometimes. For example, the following could only be handled by (unportable) GNU tar extensions while it will work on any Unix system this way: find . \( -name CVS -prune \) -o -print | cpio -dump /dst/dir (It excludes the CVS subdirs from being copied.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)