Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!news.mira.net.au!inquo!in-news.erinet.com!ddsw1!news.mcs.net!nntp04.primenet.com!nntp.primenet.com!news.mathworks.com!uunet!in3.uu.net!news.whistle.com!usenet
From: Julian Elischer <julian@whistle.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Best way to copy directory trees
Date: Mon, 19 Aug 1996 20:11:34 -0700
Organization: Whistle Communications
Lines: 24
Message-ID: <32192CE6.446B9B3D@whistle.com>
References: <ts-0108961559090001@mac.infodirekt.de>
<4tvqs3$7l8@cantina.clinet.fi> <uf7mqv3hkn.fsf@livorno.sky.bln.sub.org>
NNTP-Posting-Host: s205m22.whistle.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b6 (X11; I; FreeBSD 2.2-CURRENT i386)
To: Martin Ibert <martini@heaven7.snafu.de>
Martin Ibert wrote:
>
> In article <4tvqs3$7l8@cantina.clinet.fi> mickey@cantina.clinet.fi (Mika Ruohotie) writes:
>
> : find * -print | cpio -pdmv /mnt
> ^
> Not such a good idea, since you will lose any .hidden files in the
> source directory. "find ." ("-print" is optional, that is what find
> defaults to anyway) avoids this pitfall.
> --
in fact,
find . -depth -print|cpio -pdmuv /mnt
will be even better as it will preserve
the timestamps on the directories as well.
+----------------------------------+ ______ _ __
| __--_|\ Julian Elischer | \ U \/ / On assignment
| / \ julian@whistle.com +------>x USA \ in a strange
| ( OZ ) 110 Marsh Drive, Foster City \___ ___ | country !
+- X_.---._/ California, USA \_/ \\
v USA+(415) 577-7063(wk)