From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,d849f273c7f33f41 X-Google-Attributes: gid1020c6,public X-Google-Thread: fee84,d849f273c7f33f41 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-17 11:38:35 PST Xref: gmd.de comp.unix.admin:15323 comp.unix.osf.osf1:2605 Newsgroups: comp.unix.admin,comp.unix.osf.osf1 Path: gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!ctc.com!news.mic.ucla.edu!library.ucla.edu!europa.eng.gtefsd.com!MathWorks.Com!news.kei.com!ddsw1!chinet!les From: les@chinet.chinet.com (Leslie Mikesell) Subject: Re: system backups Message-ID: Organization: Chinet - Public Access UNIX References: <2m2jif$2r1@Krille.Update.UU.SE> <2m6s9hINNkvo@jhunix.hcf.jhu.edu> Date: Thu, 17 Mar 1994 19:38:35 GMT In article , Thad Floryan wrote: >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. I sort-of agree, but I don't think an "archived" bit would suffice. What if you want to keep multiple chains of archives current? >Note even the Amiga OS has a bit indicator for each file in its filesystem that >can be set/tested/changed by backup software. Does that help if you want backups in two locations with incrementals taken on alternate days to each be able to reconstruct every file? >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. Better, but is two enough? >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. If you restore through the filesystem (i.e not an image restore) the ctime will be updated. Likewise if you rename a file the ctime is updated. So, if you base the decision on ctime, you will catch those files. The real problem is that updating atime also modifies ctime so if you try to pretend that you didn't read the files in the backup you make them all look new for the incremental. >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. GNUtar gets most of it right. But the current version is not documented. >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! :-) There are a couple of problems with a this. First, unless you track every file on the system a find/cpio incremental will miss copying things under renamed directories. GNUtar has a mode that keeps a database of the directories at each run so it can take everything below new or renamed directories. Also, if you do more than one "generation" of incremental, restoring them in sequence will accumulate many files that were subsequently deleted. GNUtar can deal with this as well. Les Mikesell les@chinet.com