home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!gatech!destroyer!cs.ubc.ca!uw-beaver!fluke!gtisqr!toddi
- From: toddi@mav.com (Todd Inch)
- Subject: Re: How do you back up a terabyte?
- Message-ID: <1992Dec31.174549.677@mav.com>
- Organization: Maverick International Inc.
- References: <ericw.724459057@hobbes> <1992Dec16.161430.1109@cc.ic.ac.uk>
- Date: Thu, 31 Dec 92 17:45:49 GMT
- Lines: 33
-
- In article <1992Dec16.161430.1109@cc.ic.ac.uk> cmaae47@imperial.ac.uk writes:
- >In article <ericw.724459057@hobbes>, ericw@hobbes.amd.com (Eric Wedaa) writes:
- >- And does anyone remember the real reason why dump/tar/cpio is not
- >- a good thing on an acitve filesystem?
- >
- >Because users may change files while they are being backed up, and you may
- >end up with an inconsistent copy on the tape - say a random access file is
- >keeping pointers to records at its end, and the data at the beginning.
-
- And likewise two separate files may be interdependant, such as detail
- and header records in a database, or a data file and its accompanying
- hashed-key file.
-
- Also, in my case running the backups during the day, which I do do,
- slows down overall system throughput significantly.
-
- Because I'm in a database environment and the data files don't all fit
- onto one of my tapes, I do full backups during the day when I can swap
- the tapes but then automatically back up any recently changed files
- that night, which does fit onto one tape. Because my data files
- contain their own hashed keys, the copies I make while the system is in
- use are fairly often corrupted internally.
-
- Sometimes I'll just "cp" a file to make an on-disk backup, but
- afterward I have to double-check the modification times to make sure
- the original wasn't changed during my cp process.
-
- If you have NO databases, just users doing word processing or somesuch with
- text files, most of these issues won't apply. But then, the built-in Unix
- stuff such as accounting and error-logging and things like news all have
- database structures that span across multiple files and/or do random writes
- to files. You're only safe if everything writes an entire file in a single
- write operation.
-