*BSD News Article 76902


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!asstdc.scgt.oz.au!nsw.news.telstra.net!act.news.telstra.net!psgrain!iafrica.com!uct.ac.za!und.ac.za!peacenjoy.mikom.csir.co.za!news.uoregon.edu!vixen.cso.uiuc.edu!chaos.crhc.uiuc.edu!news2.acs.oakland.edu!newsfeed.concentric.net!news-master!news
From: dantso@cris.com (Daniel Ts'o)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Best way to copy directory trees
Date: Sun, 25 Aug 96 22:43:28 GMT
Organization: The Rockefeller University
Lines: 25
Message-ID: <4vqhnp$ol7@herald.concentric.net>
References: <ts-0108961559090001@mac.infodirekt.de> <4tvqs3$7l8@cantina.clinet.fi>
NNTP-Posting-Host: crc12.cris.com
X-Newsreader: News Xpress Version 1.0 Beta #4

In article <4tvqs3$7l8@cantina.clinet.fi>,
   mickey@cantina.clinet.fi (Mika Ruohotie) wrote:
:Thomas Schreiber <ts@infodirekt.de> wrote:
:>What is the best way to copy directory trees with preserving
:>access dates, permissions, links and so on?

:find * -print | cpio -pdmv /mnt
:
:havent ever had any problems with it... as long as you remember to 
cd
:to the source filesystem...

	A minor nit, "find *" will not locate files beginning with 
 (like 
profile), so you copy will miss those files. "find ." will get 
everything.



			Cheers,
			Dan Ts'o			212-327-7671
                        Dept. of Neurobiology   	FAX: 212-327-7671
                        The Rockefeller University
                        1230 York Ave.  Box 138		dantso@cris.com
                        New York, NY  10021     	dan@dna.rockefeller.edu