home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / admin / 6817 < prev    next >
Encoding:
Text File  |  1992-12-29  |  1.8 KB  |  52 lines

  1. Newsgroups: comp.unix.admin
  2. Path: sparky!uunet!wupost!emory!rigel.econ.uga.edu!marie!david
  3. From: david@marie.stat.uga.edu (David Gundlach)
  4. Subject: Re: How to move a filesytem?
  5. Message-ID: <1992Dec28.233859.9966@rigel.econ.uga.edu>
  6. Summary: why mess with cd and ()?
  7. Keywords: dump restore subshell shell pipe
  8. Sender: news@rigel.econ.uga.edu
  9. Organization: UGA Statistics Department
  10. References: <BzFBx0.ECD@encore.com> <Dec18.142941.14163@yuma.ACNS.ColoState.EDU> <1992Dec26.004056.18264@siemens.com>
  11. Date: Mon, 28 Dec 1992 23:38:59 GMT
  12. Lines: 38
  13.  
  14. And then in <1992Dec26.004056.18264@siemens.com>, aad@siemens.com (Anthony Datri) said...
  15. % dump 0f - /dev/roldfilesystem | (cd /newfilesystem ; restore rf -)
  16.  
  17. One thing I haven't yet figured out is why folks keep insisting on
  18. dumping to a subshell that then cds and restores.  Instead, why not
  19. try
  20.     :-D> cd /newfilesystem
  21.     :-D> (insert any commands, including du or df or ls, that you wish)
  22.     :-D> dump 0f - /dev/roldsystem | restore rf -
  23.  
  24. or even, more simply
  25.  
  26.     :-D> dump 0f - /partition/path/name | restore rf -
  27.  
  28. dump will happily (unlike tar, which requires the -C flag) make things
  29. look as though you were in that directory to start with, since dump
  30. just grabs whole partitions.
  31.  
  32. % ======================================================================8--<
  33. CAVEAT: This is the behavior of dump and restore under SunOS, so it
  34. may not be the same for you.  My bet would be that it would, but you
  35. can't hold me responsible for anything-- not even the weather. :-)
  36.  
  37.  
  38. :-D
  39. --
  40. David Gundlach                david@marie.stat.uga.edu
  41. System Support and Integration        david@rolf.stat.uga.edu
  42. UGA Statistics                david@castor.cs.uga.edu
  43. University of Georgia            david@groucho.dev.uga.edu
  44. 706/542-3289 or 706/542-5232        BITNET: statuga@uga
  45.  
  46. "I think, therefore I am wrong." --     me
  47.  
  48.  
  49.