From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d849f273c7f33f41 X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,d849f273c7f33f41 X-Google-Attributes: gid1020c6,public X-Google-ArrivalTime: 1994-03-17 04:49:11 PST Xref: gmd.de comp.unix.admin:15192 comp.unix.osf.osf1:2570 Newsgroups: comp.unix.admin,comp.unix.osf.osf1 Path: gmd.de!xlink.net!howland.reston.ans.net!paladin.american.edu!MathWorks.Com!europa.eng.gtefsd.com!emory!swrinde!elroy.jpl.nasa.gov!decwrl!netcomsv!netcom.com!thad From: thad@netcom.com (Thad Floryan) Subject: Re: system backups Message-ID: Organization: Personal account at Netcom Public Access UNIX References: <2m2jif$2r1@Krille.Update.UU.SE> <2m6s9hINNkvo@jhunix.hcf.jhu.edu> Date: Thu, 17 Mar 1994 12:49:11 GMT In article <2m6s9hINNkvo@jhunix.hcf.jhu.edu> szgyula@skysrv.pha.jhu.edu (Gyula Szokoly) writes: | Rumours said that in some case you can loose (i.e. no way to restore it) | whole directory trees. | Again rumours, but somebody did test the different backup methods (tar, cpio, | dump, etc.). None of them works in multiuser mode. They can reproduce errors | for every method. | So it's a real pain. The suggestion that every backup should be done | in single user mode is insane. We just can't do that. Not even once a month. | Good old VMS (probably RSX, too) was able to do backups. It was 20 years | ago? Unix still could not catch up :-(. | What to say? If you believe in God -- pray and do backups on hot systems, | but be prepared that you might not be able to restore it. This is my only | option. There is work that needs to be done on the machine (proxesses running | for weeks). | | Just my opinion, Right (re: opinion). So let's set some facts straight. For a detailed discussion of dump(8) problems with live filesystems, I refer you to "Analyzing Backup Systems" by Elizabeth Zwicky (zwicky@erg.sri.com), dated May 16, 1993. I got my copy by ftp'ing to erg.sri.com. Her report is PostScript-printer-ready, so look for a *.ps file. VMS arrived on the scene in 1978, so it hasn't been 20 years. VMS' file system has an entry for date/time of file backup. VMS' file system does NOT have an entry for file last access date/time (this is a serious blunder (at least including everying up to but not including VMS 6.*)) UNIX' dump(8) in level 0 is analogous to VMS' image disk backup (which _must_ be run in "single-user" [standalone] mode). UNIX file systems have entries (in the inode) for change, modify and access date/times. The main problem with all UNIX filesystems I've seen is the total, absolute lack of backup cognizance in the file system. Not even a "file archived" bit exists. Note even the Amiga OS has a bit indicator for each file in its filesystem that can be set/tested/changed by backup software. The best OS I've seen for backup/restore operations is TOPS-20 which not only had the equivalent of change, modify and access date/times, it had TWO backup date/times for each file's filesystem entry. Thus, a file could be assured to appear on two incremental backups (assuming a diligent operations staff). And there were many other backup-related tidbits in its filesystem entries. The only reasonable workaround I've encountered for UNIX is an application- based database keeping track of all files' backup status. Simply using a timestamp file with find piped to cpio won't do it for files newly restored from tape whose dates are prior to the timestamp file's date. As far as problems using restore(8) with tapes dumped on a live filesystem, the only problem I've personally encountered dealt with hard linked files (they weren't restored properly; fortunately (for me) I was able to rdist them from an adjacent system). Frankly, the only real gripe I've ever had with UNIX is its lack of built-in backup-status cognizance. I *like* UNIX, and all my home computers are UNIX systems from a variety of vendors. For my systems, every Sunday they go single-user for automated DAT-based backups using dump (while I'm out doing things in the real world), and every weekday night incremental backups are made with a cpio-based script (which I've posted many times), and in all the years I've never had any problems with this backup strategy. And, yes, I have had occasion and need to restore from both the dump(8) and cpio backups due to occasionally neglecting to remember that the RETURN key is the most dangerous command in UNIX! :-) If you have "work that needs to be done on the machine (proxesses [sic] running for weeks)", what do you do about power failuers? For that reason alone, your programs/software should do checkpoints so it can be restarted at the checkpoint after unscheduled service interruptions. Surely you don't just restart a weeks-long run from the beginning every time! Or do you? Thad Floryan [ thad@btr.com, thad@cup.portal.com, thad@netcom.com ]