home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / admin / 6677 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.3 KB  |  34 lines

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