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

  1. Path: sparky!uunet!pipex!warwick!uknet!edcastle!dcs.ed.ac.uk!paul
  2. From: paul@dcs.ed.ac.uk (Paul Anderson)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Best method for filesystem copy?
  5. Message-ID: <BzEBKA.GBG@dcs.ed.ac.uk>
  6. Date: 17 Dec 92 08:57:46 GMT
  7. References: <1992Dec8.144945.6339@nsisrv.gsfc.nasa.gov> <ericw.724458671@hobbes>
  8. Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
  9. Organization: Department of Computer Science, University of Edinburgh
  10. Lines: 38
  11.  
  12. In article <ericw.724458671@hobbes>, ericw@hobbes.amd.com (Eric Wedaa) writes:
  13. > markb@news.gsfc.nasa.gov (Mark R. Baith) writes:
  14. > >I need to copy a filesystem currently housed on a 1 Gb disk to a 2 Gb
  15. > >disk.  dump seemed like a good idea, but the procedure kept asking for
  16. > Well, Considering that I do this sort of stuff every week (Or so it 
  17. > seems...) here's what I do...
  18. > cd from_dir
  19. > tar -cf - |(cd target_dir; tar -xfBp -)
  20. > or...
  21. > rsh from_machine
  22. > cd from_dir
  23. > tar -cf - |rsh target_machine "(cd target_dir; tar -xfBp -)"
  24. > Their are two things to remember though:
  25. > 1) core files grow because of tar  (They are "holey" files.)
  26. > 2) device files/pipes do not get copied.
  27.  
  28. Take a look at Elizabeth Zwicky's paper on "torture-testing backup programs"
  29. from the LISA V conference. This looks at a whole range of backup programs
  30. and compares the performance of programs like tar, cpio & dump when handling
  31. things like sparse files.
  32.  
  33. I also have a program called "lfu" which (among other things) attempts to
  34. make faithful copies of directory hierarchies. Some documents describing
  35. this (and the code) are in pub/lfu on ftp.dcs.ed.ac.uk
  36.  
  37.     Paul
  38.  
  39. -- 
  40. Paul Anderson                      email: paul@dcs.ed.ac.uk
  41. LFCS, Dept. of Computer Science
  42. University of Edinburgh            phone: (+44) (0)31-650-5193
  43. Edinburgh EH9 3JZ, UK.             fax:   (+44) (0)31-667-7209
  44.