home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!usc!cs.utexas.edu!swrinde!emory!europa.asd.contel.com!darwin.sura.net!sgiblab!bridge2!news.claremont.edu!ucivax!megatek!randy
- From: randy@megatek.com (Randy Davis)
- Newsgroups: comp.unix.admin
- Subject: Re: Fastest way to transfer whole filesystems?
- Message-ID: <1992Nov12.234927.3812@megatek.com>
- Date: 12 Nov 92 23:49:27 GMT
- References: <40335@unix.SRI.COM> <BxK813.AKF@news.cso.uiuc.edu>
- Sender: randy@megatek.com (Randy Davis)
- Reply-To: randy@megatek.com
- Organization: Megatek Corporation, San Diego, California
- Lines: 26
-
- In article <BxK813.AKF@news.cso.uiuc.edu> lam@mrcnext.cso.uiuc.edu (Ken Lam) writes:
- |I've had to copy entire partitions, I just used cp -R. It doesn't work
- |correctly with links though. I believe that this should be a bit faster
- |since, piping involves an extra step of creating a temporary file.
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Not in any flavor of UNIX I've seen. Perhaps a FIFO in some instances,
- but no temporary data file.
-
- The dump | restore method is the fastest under SunOS - of course, I've only
- been able to get this work acceptably when copying a COMPLETE partition to
- another drive. If you want to copy only PART of the partition, I've had
- better results from cpio ("find . -depth -print | cpio -pdmuv /destination")
- than from tar. This, of course, makes sense, since this was what cpio was
- designed for.
-
- Of course, if you are copying a filesystem with inodes greater than 65k and
- plan on using cpio under SunOS 4.1, 4.1.1, or 4.1.2 (I don't know about 4.1.3),
- make sure that your cpio has been patched (patch 100556). There is a bug in
- cpio under SunOS 4.1.[12] where the table keeping track of the hard links was
- defined as a "short", when a short won't cut it when you exceed 65536 as an
- inode value... (We found this out the hard way, when moving some 1800 MB
- partitions using cpio).
-
- Randy Davis Email: randy@megatek.com
- Corporate Network and System Administrator megatek!randy@uunet.uu.net
- Megatek Corporation, San Diego, California ucsd!megatek.uucp!randy
-