Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site avsdT.BERKNET
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!tektronix!hplabs!hpda!fortune!dsd!avsdS!avsdT:rlr
From: rlr@avsdT.BERKNET (Rhode L. Roberts)
Newsgroups: net.wanted.sources
Subject: Re: user-friendly backup system needed
Message-ID: <166@avsdT.BERKNET>
Date: Thu, 22-Aug-85 18:55:02 EDT
Article-I.D.: avsdT.166
Posted: Thu Aug 22 18:55:02 1985
Date-Received: Sun, 25-Aug-85 13:15:40 EDT
References: <231@yetti.UUCP>
Organization: Ampex Audio-Video Engineering, Redwood City, CA
Lines: 89

> Thus, I badly need a shell script/program/whatever to perform
> nighly backups (using dump, preferably using reverse hanoi
> sequence) with minimum amount of knowledge on the operator's
> part. It should preferably a very friendly front-end, with
> some sort of intelligent error-recovery. Plz..plz.. help!!

A few weeks ago (month mabey) someone asked for something
better than "Dump W".

I replied that we used a "csh script" here at Ampex, and that
I would mail them a copy with manual page.  I will mail
anyone who mails a request to me, the script.

In fact, the current script we run has been modified and debuged
and is slightly different than the one I mailed to the six
original requesting parties.

The script basicaly performes a "0 level dump" on the first
monday of the month, putting each file system on a separate
tape.  There are three sets of "0 level dump tapes", thus
providing restore capabilities back three months at 0 level.
(set 1 - month 1, set 2 - month2, set 3 - month 3, set 1 - month 4)

The remaining mondays of a month ( 3 ususally sometimes 4 ) get
dumped with levels "1 thru 4" respectively. There are three sets
of these tapes as well.

			set 1 =  month 1
(week 2 - lvl 1, week 3 - lvl 2, week 4 - lvl 3, [week 5 - lvl 4])

			set 2 =  month 2
(week 2 - lvl 1, week 3 - lvl 2, week 4 - lvl 3, [week 5 - lvl 4])

			set 3 =  month 3
(week 2 - lvl 1, week 3 - lvl 2, week 4 - lvl 3, [week 5 - lvl 4])

			set 1 =  month 4
(week 2 - lvl 1, week 3 - lvl 2, week 4 - lvl 3, [week 5 - lvl 4])

This allows a restor up to a given week within the last three months.


Tuesdays through Fridays get dumped with levels 6,5,8,7 respectively.
there are three sets of these tapes also, but they rotate a little
differently.  These tapes rotate set 1, set 2, set 1, set 2, set 3.
So the set 3 only gets used if there is 5 weeks in the month.

This allows you to restor to any given day within the last 2 weeks.
(Sometimes 3 weeks if there were 5 weeks in the month).

The script is full prompting with what tape and what set to use,
it keeps track of the major dumps (0 thru 4).  It figures actual
tape usage before doing the dump "if" you want it to, so that you
can put an amount of file systems that will fit on one tape, then
stop for tape changes for the other file systems. If that option
"is" selected and all file systems will fit on a single tape,
it will dump them all on the tape without further prompting.

It will do a level 0 if one has not been done this month.  It will
do the correct level 1 thru 4 on any day if one has not been done that week.

It knows about the month changing in the middle of the week and
will continue to run the daily incrementals accordingly.

We run the program every day, and make tape copies of the
level 0 through 4 dumps ( monday's ) and store these copies
in a safe vault.  This way we can restore a file from any
week in the past.

THE FLAWS:

/etc/dumpdates must have a record of dump history for levels
0 through 4 already in exsistence before the script can be run,
because some of the variables require this information.

There is one line in the script that is longer than 80 characters,
this sometimes gets munged in the mail and may need repair.

If interested mail me, if there is enough resoponse I will post the src.

				R. L. Roberts
				Ampex Corporation
				One of the Allied/Signal Companies
				Audio Video Systems Division
				Computer Services Group
				401 Broadway  M.S. 3-54
				Redwood City, CA. 94063-3199
				(415) 367-3790
				...{hplabs,ucbvax}!atd!avsdT:rlr