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

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!think.com!rpi!usenet.coe.montana.edu!giac1.oscs.montana.edu!osycs
  3. From: osycs@giac1.oscs.montana.edu (Craig Spannring)
  4. Subject: Re: Best method for filesystem copy?
  5. Message-ID: <1992Dec16.093255.26217@coe.montana.edu>
  6. Keywords: n
  7. Sender: usenet@coe.montana.edu (USENET News System)
  8. Organization: Geographic Information & Analysis Center Montana State University
  9. References: <1992Dec8.144945.6339@nsisrv.gsfc.nasa.gov> <ericw.724458671@hobbes>
  10. Date: Wed, 16 Dec 1992 09:32:55 GMT
  11. Lines: 30
  12.  
  13. In article <ericw.724458671@hobbes> ericw@hobbes.amd.com (Eric Wedaa) writes:
  14. >markb@news.gsfc.nasa.gov (Mark R. Baith) writes:
  15. >>I need to copy a filesystem currently housed on a 1 Gb disk to a 2 Gb
  16. >>disk.  dump seemed like a good idea, but the procedure kept asking for
  17.  
  18. I still think dump is your best choice.  Try something that looks like
  19.  
  20.    dump 0f - | (cd /destination ; restore xf -)
  21.  
  22. Disclaimer-  It works on Ultrix.  Other systems might differ.
  23.  
  24.  
  25. >Well, Considering that I do this sort of stuff every week (Or so it 
  26. >seems...) here's what I do...
  27. >
  28. >cd from_dir
  29. >tar -cf - |(cd target_dir; tar -xfBp -)
  30. >
  31. >Their are two things to remember though:
  32. >1) core files grow because of tar  (They are "holey" files.)
  33. >2) device files/pipes do not get copied.
  34.  
  35. tar will archive and extract device files.  You do have to
  36. be root to do it though.
  37.  
  38. -- 
  39. =========================================================================
  40.  Six of one, 110 (base 2) of | Craig Spannring --- (406) 994-6128
  41.  another.                    | osycs@giac1.oscs.montana.edu
  42.  ----------------------------+ Geographic Information & Analysis Center
  43.