Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Steve Kulpa <NO_S*P*A*M_skulpa@envirosys.com>
Subject: Re: Help with VMS Backup
Date: 1997/10/09	[thread overview]
Message-ID: <343D1C34.51B35C07@envirosys.com> (raw)
In-Reply-To: 343C22FD.41C6@mbi.ucla.edu


Sergio Rotstein wrote:
> 
> I suspect that this is probably not the best newsgroup to post this in
> but I hope somebody can guide me towards the proper resources...
> 
> I am trying to set up an alpha running openVMS (7.x) so that it will
> automatically perform a backup of a certain group of directories every
> day (full backup on Sundays, incremental backup the rest of the week).
> 
> Can anybody give me some pointers on how to go about this?

how about this:

Write a dcl procedure that submits itself to the batch queue to run on
each day at the desired hour  ...SUBMIT/AFTER=TOMORROW+"01:00" for
example to run at 1:00 am

At the beginning of the procedure, DAY = F$CVTIME("",,"WEEKDAY")

DAY will then be MONDAY, TUESDAY, ...etc.

Use the DAY symbol to do the backup you want to do .

Here's a quick example.  You change the particulars:

$! DAILY_BU.COM - Perform daily backups
$!
$! First, resubmit myself
$!
$ SBMIT/LOG=DAILY_BU.LOG/NONOTIFY/NOPRINT -
  /NAME=BACKUP/AFTER=TOMORROW+"00:00" DAILY_BU.COM
$!
$! Now get today's day of the week
$!
$ DAY = F$CVTIME("",,"WEEKDAY")
$!
$! Then do the proper backup based on the d-o-t-w
$!
IF DAY .EQS. "SUNDAY"
THEN
   BACKUP/IMAGE/RECORD/...
ELSE
   BACKUP/SINCE=BACKUP/RECORD/...
ENDIF
$!
$! All done
$!
$ EXIT


Don't forget the /RECORD qualifier on the backup command so you'll mark
the files for the incremental backups.

Steve

--
Steven S. Kulpa
Project Leader
Environmental Systems Corporation
Knoxville, Tennessee
http://www.envirosys.com/
Remove NO_SP*A*M_ to reply
--



      reply	other threads:[~1997-10-09  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-08  4:00 Help with VMS Backup Sergio Rotstein
1997-10-09  4:00 ` Steve Kulpa [this message]
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