oz@yetti.UUCP (Ozan Yigit) (08/14/85)
I have a problem ! I run a VAX-750 under 4.2 BSD in a site where all other VAXen run under VMS. Our operators are VMS knowledgeable, but that took a looong time. They do not have the time nor the inclination to learn a new op system. 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!! Oz -- Usenet: [decvax|allegra|linus|ihnp4]!utzoo!yetti!oz Bitnet: oz@[yuleo|yuyetti] You see things; and you say "WHY?" But I dream things that never were; and say "WHY NOT?" G. Bernard Shaw (Back to Methuselah)
rlr@avsdT.BERKNET (Rhode L. Roberts) (08/23/85)
> 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