home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!wupost!emory!rigel.econ.uga.edu!marie!david
- From: david@marie.stat.uga.edu (David Gundlach)
- Subject: Re: How to move a filesytem?
- Message-ID: <1992Dec28.233859.9966@rigel.econ.uga.edu>
- Summary: why mess with cd and ()?
- Keywords: dump restore subshell shell pipe
- Sender: news@rigel.econ.uga.edu
- Organization: UGA Statistics Department
- References: <BzFBx0.ECD@encore.com> <Dec18.142941.14163@yuma.ACNS.ColoState.EDU> <1992Dec26.004056.18264@siemens.com>
- Date: Mon, 28 Dec 1992 23:38:59 GMT
- Lines: 38
-
- And then in <1992Dec26.004056.18264@siemens.com>, aad@siemens.com (Anthony Datri) said...
- %
- % dump 0f - /dev/roldfilesystem | (cd /newfilesystem ; restore rf -)
-
- One thing I haven't yet figured out is why folks keep insisting on
- dumping to a subshell that then cds and restores. Instead, why not
- try
- :-D> cd /newfilesystem
- :-D> (insert any commands, including du or df or ls, that you wish)
- :-D> dump 0f - /dev/roldsystem | restore rf -
-
- or even, more simply
-
- :-D> dump 0f - /partition/path/name | restore rf -
-
- dump will happily (unlike tar, which requires the -C flag) make things
- look as though you were in that directory to start with, since dump
- just grabs whole partitions.
-
- %
- % ======================================================================8--<
- %
- CAVEAT: This is the behavior of dump and restore under SunOS, so it
- may not be the same for you. My bet would be that it would, but you
- can't hold me responsible for anything-- not even the weather. :-)
-
-
- :-D
- --
- David Gundlach david@marie.stat.uga.edu
- System Support and Integration david@rolf.stat.uga.edu
- UGA Statistics david@castor.cs.uga.edu
- University of Georgia david@groucho.dev.uga.edu
- 706/542-3289 or 706/542-5232 BITNET: statuga@uga
-
- "I think, therefore I am wrong." -- me
-
-
-