home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / admin / 6223 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.4 KB

  1. Path: sparky!uunet!know!mips2!news.bbn.com!noc.near.net!news.Brown.EDU!qt.cs.utexas.edu!yale.edu!spool.mu.edu!sgiblab!munnari.oz.au!sol.deakin.OZ.AU!news.cs.uow.edu.au!cssc-syd.tansu.com.au!rodney
  2. From: rodney@cssc-syd.tansu.com.au (Rodney Campbell)
  3. Newsgroups: comp.unix.admin
  4. Subject: Re: Fastest way to transfer whole filesystems?
  5. Message-ID: <1992Nov16.064402.9186@cssc-syd.tansu.com.au>
  6. Date: 16 Nov 92 06:44:02 GMT
  7. References: <40335@unix.SRI.COM>
  8. Organization: AOTC - CSSC
  9. Lines: 24
  10.  
  11. cole@unix.SRI.COM (Susan Cole) writes:
  12.  
  13. >What's the fastest way to transfer an entire filesystem from one
  14. >disk partition to another (different type disk, larger partition)?
  15. >I thought that a tar would be much faster than a dump and restore
  16. >from tape, but when I tried it, using a command like:
  17.  
  18. >    tar cf - . | ( cd /otherfs; tar xpf - )
  19.  
  20. If you are moving files on the same machine then you can use the simple
  21. version of cpio. Try something like:
  22.  
  23. % cd sourcedir
  24. % find . -depth -print | cpio -pdmv destdir
  25.  
  26. This will make a nice duplicate of the filesystem within sourcedir at the
  27. destdir location, symlinks, permissions, ownerships and all.
  28.  
  29.                                 Rodney...
  30. -- 
  31.      Rodney Campbell - AOTC    |Email : rodney@cssc-syd.tansu.com.au
  32.    Advanced Network Products   |Snail : Level 1, 18-20 Orion Rd, Lane Cove West
  33.  Customised Software Solutions |  -  PO Box A792, Sydney South 2000, Australia.
  34.         Centre - Sydney        |Phone : +61 (0)2 911 3123   Fax: +61 2 911 3199
  35.