Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: les@chinet.chinet.com (Leslie Mikesell)
Subject: Re: system backups
Date: Thu, 17 Mar 1994 19:38:35 GMT	[thread overview]
Message-ID: <CMtqKC.2o6@chinet.chinet.com> (raw)
In-Reply-To: thadCMt7Lz.BuC@netcom.com

In article <thadCMt7Lz.BuC@netcom.com>, Thad Floryan <thad@netcom.com> 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


  parent reply	other threads:[~1994-03-17 19:38 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-11 20:01 system backups G. Bongers
1994-03-12  5:49 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1994-03-13 18:51 ` David E. Fox
1994-03-14 15:08   ` Martin Walker
1994-03-14 18:26   ` Mike Iglesias
1994-03-14 21:05   ` Johnny Billquist
     [not found]     ` <COWELL.94Mar16054927@duncan.cs.utk.edu>
1994-03-16 11:58       ` Gyula Szokoly
1994-03-17 12:49         ` Thad Floryan
1994-03-17 17:34           ` Ted Levie~
1994-03-18 13:18             ` Thad Floryan
1994-03-17 17:43           ` Ethan A Merritt
1994-03-18 13:24             ` Thad Floryan
1994-03-18 18:56             ` Richard Tsumaki
1994-03-17 18:07           ` Matthew Liggett
1994-03-18 13:21             ` Thad Floryan
1994-03-18 16:32               ` Lawrence MacIntyre
1994-03-17 19:38           ` Leslie Mikesell [this message]
1994-03-18 13:19             ` Thad Floryan
1994-03-14 21:13   ` Jon Mauney
     [not found]   ` <2m2jif$2r1@krille.update.uu.se>
1994-03-15  6:29     ` Leslie Mikesell
1994-03-15 18:14 ` Carl J Appellof
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox