home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!sci34hub!gary
- From: gary@sci34hub.sci.com (Gary Heston)
- Subject: Re: Best method for filesystem copy?
- Message-ID: <1992Dec16.154828.1140@sci34hub.sci.com>
- Reply-To: gary@sci34hub.sci.com (Gary Heston)
- Organization: SCI Systems, Inc., Huntsville, Al.
- References: <1992Dec8.144945.6339@nsisrv.gsfc.nasa.gov> <1992Dec11.184402.28159@irscscm.UUCP> <1992Dec15.160458.1558@progress.com>
- Date: Wed, 16 Dec 1992 15:48:28 GMT
- Lines: 22
-
- In article <1992Dec15.160458.1558@progress.com> tucker@bedford.progress.COM writes:
- >The best way I've found to do this, thanks to some DEC tech rep, is right
- >in the tar man page. It keeps all permissions, ownership and links fully
- >intact.
-
- >cd fromdir; tar cf - . | (cd todir; tar xf -)
-
-
- Cpio keeps all permissions, ownerships, and links intact, and also will
- properly handle device entries, named pipes, and any other special files
- that happen to be out there.
-
- find . -print | cpio -pdlm todir
-
- is my standard practice.
-
-
- --
- Gary Heston SCI Systems, Inc. gary@sci34hub.sci.com site admin
- The Chairman of the Board and the CFO speak for SCI. I'm neither.
- "Data sheet: HSN-3000 Nuclear Event Detector. The [NED] senses the gamma
- radiation pulse [from a] nuclear weapon." As if we wouldn't notice...
-