home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!think.com!rpi!usenet.coe.montana.edu!giac1.oscs.montana.edu!osycs
- From: osycs@giac1.oscs.montana.edu (Craig Spannring)
- Subject: Re: Best method for filesystem copy?
- Message-ID: <1992Dec16.093255.26217@coe.montana.edu>
- Keywords: n
- Sender: usenet@coe.montana.edu (USENET News System)
- Organization: Geographic Information & Analysis Center Montana State University
- References: <1992Dec8.144945.6339@nsisrv.gsfc.nasa.gov> <ericw.724458671@hobbes>
- Date: Wed, 16 Dec 1992 09:32:55 GMT
- Lines: 30
-
- In article <ericw.724458671@hobbes> ericw@hobbes.amd.com (Eric Wedaa) writes:
- >markb@news.gsfc.nasa.gov (Mark R. Baith) writes:
- >>I need to copy a filesystem currently housed on a 1 Gb disk to a 2 Gb
- >>disk. dump seemed like a good idea, but the procedure kept asking for
-
- I still think dump is your best choice. Try something that looks like
-
- dump 0f - | (cd /destination ; restore xf -)
-
- Disclaimer- It works on Ultrix. Other systems might differ.
-
-
- >Well, Considering that I do this sort of stuff every week (Or so it
- >seems...) here's what I do...
- >
- >cd from_dir
- >tar -cf - |(cd target_dir; tar -xfBp -)
- >
- >Their are two things to remember though:
- >1) core files grow because of tar (They are "holey" files.)
- >2) device files/pipes do not get copied.
-
- tar will archive and extract device files. You do have to
- be root to do it though.
-
- --
- =========================================================================
- Six of one, 110 (base 2) of | Craig Spannring --- (406) 994-6128
- another. | osycs@giac1.oscs.montana.edu
- ----------------------------+ Geographic Information & Analysis Center
-