home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / admin / 6169 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  2.2 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!swrinde!emory!europa.asd.contel.com!darwin.sura.net!sgiblab!bridge2!news.claremont.edu!ucivax!megatek!randy
  2. From: randy@megatek.com (Randy Davis)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Fastest way to transfer whole filesystems?
  5. Message-ID: <1992Nov12.234927.3812@megatek.com>
  6. Date: 12 Nov 92 23:49:27 GMT
  7. References: <40335@unix.SRI.COM> <BxK813.AKF@news.cso.uiuc.edu>
  8. Sender: randy@megatek.com (Randy Davis)
  9. Reply-To: randy@megatek.com
  10. Organization: Megatek Corporation, San Diego, California
  11. Lines: 26
  12.  
  13. In article <BxK813.AKF@news.cso.uiuc.edu> lam@mrcnext.cso.uiuc.edu (Ken Lam) writes:
  14. |I've had to copy entire partitions, I just used cp -R.  It doesn't work
  15. |correctly with links though.  I believe that this should be a bit faster
  16. |since, piping involves an extra step of creating a temporary file.
  17.         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  18.   Not in any flavor of UNIX I've seen.  Perhaps a FIFO in some instances,
  19. but no temporary data file.
  20.  
  21.   The dump | restore method is the fastest under SunOS - of course, I've only
  22. been able to get this work acceptably when copying a COMPLETE partition to
  23. another drive.  If you want to copy only PART of the partition, I've had
  24. better results from cpio ("find . -depth -print | cpio -pdmuv /destination")
  25. than from tar.  This, of course, makes sense, since this was what cpio was
  26. designed for.
  27.  
  28.   Of course, if you are copying a filesystem with inodes greater than 65k and
  29. plan on using cpio under SunOS 4.1, 4.1.1, or 4.1.2 (I don't know about 4.1.3),
  30. make sure that your cpio has been patched (patch 100556).  There is a bug in
  31. cpio under SunOS 4.1.[12] where the table keeping track of the hard links was
  32. defined as a "short", when a short won't cut it when you exceed 65536 as an
  33. inode value...  (We found this out the hard way, when moving some 1800 MB
  34. partitions using cpio).
  35.  
  36. Randy Davis                            Email: randy@megatek.com
  37. Corporate Network and System Administrator    megatek!randy@uunet.uu.net
  38. Megatek Corporation, San Diego, California    ucsd!megatek.uucp!randy
  39.