home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!edcastle!dcs.ed.ac.uk!paul
- From: paul@dcs.ed.ac.uk (Paul Anderson)
- Newsgroups: comp.unix.admin
- Subject: Re: Best method for filesystem copy?
- Message-ID: <BzEBKA.GBG@dcs.ed.ac.uk>
- Date: 17 Dec 92 08:57:46 GMT
- References: <1992Dec8.144945.6339@nsisrv.gsfc.nasa.gov> <ericw.724458671@hobbes>
- Sender: cnews@dcs.ed.ac.uk (UseNet News Admin)
- Organization: Department of Computer Science, University of Edinburgh
- Lines: 38
-
- 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
- >
- > 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 -)
- >
- > or...
- >
- > rsh from_machine
- > cd from_dir
- > tar -cf - |rsh target_machine "(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.
-
- Take a look at Elizabeth Zwicky's paper on "torture-testing backup programs"
- from the LISA V conference. This looks at a whole range of backup programs
- and compares the performance of programs like tar, cpio & dump when handling
- things like sparse files.
-
- I also have a program called "lfu" which (among other things) attempts to
- make faithful copies of directory hierarchies. Some documents describing
- this (and the code) are in pub/lfu on ftp.dcs.ed.ac.uk
-
- Paul
-
- --
- Paul Anderson email: paul@dcs.ed.ac.uk
- LFCS, Dept. of Computer Science
- University of Edinburgh phone: (+44) (0)31-650-5193
- Edinburgh EH9 3JZ, UK. fax: (+44) (0)31-667-7209
-