home *** CD-ROM | disk | FTP | other *** search
- 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
- From: rodney@cssc-syd.tansu.com.au (Rodney Campbell)
- Newsgroups: comp.unix.admin
- Subject: Re: Fastest way to transfer whole filesystems?
- Message-ID: <1992Nov16.064402.9186@cssc-syd.tansu.com.au>
- Date: 16 Nov 92 06:44:02 GMT
- References: <40335@unix.SRI.COM>
- Organization: AOTC - CSSC
- Lines: 24
-
- cole@unix.SRI.COM (Susan Cole) writes:
-
- >What's the fastest way to transfer an entire filesystem from one
- >disk partition to another (different type disk, larger partition)?
- >I thought that a tar would be much faster than a dump and restore
- >from tape, but when I tried it, using a command like:
-
- > tar cf - . | ( cd /otherfs; tar xpf - )
-
- If you are moving files on the same machine then you can use the simple
- version of cpio. Try something like:
-
- % cd sourcedir
- % find . -depth -print | cpio -pdmv destdir
-
- This will make a nice duplicate of the filesystem within sourcedir at the
- destdir location, symlinks, permissions, ownerships and all.
-
- Rodney...
- --
- Rodney Campbell - AOTC |Email : rodney@cssc-syd.tansu.com.au
- Advanced Network Products |Snail : Level 1, 18-20 Orion Rd, Lane Cove West
- Customised Software Solutions | - PO Box A792, Sydney South 2000, Australia.
- Centre - Sydney |Phone : +61 (0)2 911 3123 Fax: +61 2 911 3199
-