Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!newsgate.duke.edu!news.mathworks.com!newsfeed.internetmci.com!in3.uu.net!01-newsfeed.univie.ac.at!uw.edu.pl!ict.pwr.wroc.pl!ci.pwr.wroc.pl!news.man.lodz.pl!newsadmin From: Piotr Sroczynski <piotr@m1.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Best way to copy directory trees Date: Mon, 05 Aug 1996 09:57:28 -0700 Organization: MAGNUM Lines: 10 Message-ID: <320627F8.7B60@m1.com> References: <ts-0108961559090001@mac.infodirekt.de> <4tvqs3$7l8@cantina.clinet.fi> NNTP-Posting-Host: @piotr.magnum.lodz.pl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 2.01 (Win16; I) CC: piotr@m1.com Mika Ruohotie wrote: > find * -print | cpio -pdmv /mnt > > havent ever had any problems with it... as long as you remember to cd > to the source filesystem...This command has a problem with copy of symlinks on NFS mounted filesystems (tested on SCO). If you want to copy subdirectory tree try this: cd from_directory ; find subdirectory -depth -print | cpio -oc | (cd to_directory ; cpio -imd) Piotr S.