home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / admin / 6662 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.6 KB

  1. Path: sparky!uunet!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!exodus.Eng.Sun.COM!sun!amdcad!hobbes!ericw
  2. From: ericw@hobbes.amd.com (Eric Wedaa)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Best method for filesystem copy?
  5. Message-ID: <ericw.724458671@hobbes>
  6. Date: 15 Dec 92 22:31:11 GMT
  7. References: <1992Dec8.144945.6339@nsisrv.gsfc.nasa.gov>
  8. Sender: usenet@amd.com (NetNews)
  9. Organization: Advanced Micro Devices, Inc.
  10. Lines: 36
  11. Nntp-Posting-Host: hobbes
  12.  
  13. markb@news.gsfc.nasa.gov (Mark R. Baith) writes:
  14.  
  15.  
  16. >I need to copy a filesystem currently housed on a 1 Gb disk to a 2 Gb
  17. >disk.  dump seemed like a good idea, but the procedure kept asking for
  18.  
  19. Well, Considering that I do this sort of stuff every week (Or so it 
  20. seems...) here's what I do...
  21.  
  22. cd from_dir
  23. tar -cf - |(cd target_dir; tar -xfBp -)
  24.  
  25. or...
  26.  
  27. rsh from_machine
  28. cd from_dir
  29. tar -cf - |rsh target_machine "(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. On the other hand, if my users lose a pipe, it's no big deal.
  36. They don't typically keep core files around.
  37. They don't have device files in their directories either.
  38.  
  39. >>>>>>>Ericw
  40. (BTW: why would I be doing this every week?  Because I have an AUSPEX
  41. and users that love disk space!  ;)
  42.  
  43.  
  44. --
  45. Eric Wedaa  -  eric.wedaa@amd.com | Two more kinds of lies...
  46. {ames apple uunet}!amd!ericw      |     Release Dates, and Benchmarks
  47. Advanced Micro Devices, M/S 167 PO Box 3453 Sunnyvale, CA 94088-3453
  48. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  49.