home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / admin / 6141 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.6 KB  |  46 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!tandem!UB.com!daver!cypress.com!abp
  3. From: abp@mis25.cypress.com (Andy Pippin / MIS Sun Admin. (Systems))
  4. Subject: Re: Fastest way to transfer whole filesystems?
  5. Message-ID: <1992Nov11.215556.2530@cypress.com>
  6. Sender: news@cypress.com
  7. Nntp-Posting-Host: 89.64.2.34
  8. Reply-To: abp@mis25.cypress.com
  9. Organization: Cypress Semiconductor
  10. References: <40335@unix.SRI.COM>
  11. Date: Wed, 11 Nov 1992 21:55:56 GMT
  12. Lines: 32
  13.  
  14. cole@unix.SRI.COM (Susan Cole) writes:
  15. >
  16. >What's the fastest way to transfer an entire filesystem from one
  17. >disk partition to another (different type disk, larger partition)?
  18. >I thought that a tar would be much faster than a dump and restore
  19. >from tape, but when I tried it, using a command like:
  20. >
  21. >    tar cf - . | ( cd /otherfs; tar xpf - )
  22. >
  23. >I got a surprising slow rate, something like 2 minutes per megabyte.  Am I
  24. >using the wrong command, or using the right command the wrong way, or is this
  25. >just an inevitably slow procedure?  What I'm moving is the news partition,
  26. >and I've already learned that restoring it from dump tape is horribly slow.
  27. >The system is a Sun SPARC machine.
  28. >
  29. >Thanks for any assistance.
  30.  
  31.  
  32.     I don't use tar to copy filesystems - it cannot handle devices and
  33.     the like.  I use the dump/restore pipe that is in the restore(8)
  34.     man page.
  35.  
  36.         dump 0f - /dev/rxy0g | ( cd /mnt; restore xf - )
  37.  
  38.     It's not too bad for speed - but you're definitely I/O bound on this
  39.     type of command.
  40.  
  41.     aBp.
  42. ---
  43. Andy Pippin, Systems Administrator                An exit from one place,
  44. abp@cypress.com                                 is an entrance to another.
  45.  
  46.