* Help with VMS Backup
@ 1997-10-08 4:00 Sergio Rotstein
1997-10-09 4:00 ` Steve Kulpa
0 siblings, 1 reply; 2+ messages in thread
From: Sergio Rotstein @ 1997-10-08 4:00 UTC (permalink / raw)
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?
Thanks very much.
Sergio.
--
******************************************************************
* Sergio H. Rotstein Molecular Biology Institute, UCLA *
* *
* e-mail: sergio@mbi.ucla.edu address: 205 MBI *
* phone: (310) 825-1402 Box 951570 *
* fax: (310) 206-3914 Los Angeles, CA90095-1570 *
******************************************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help with VMS Backup
1997-10-08 4:00 Help with VMS Backup Sergio Rotstein
@ 1997-10-09 4:00 ` Steve Kulpa
0 siblings, 0 replies; 2+ messages in thread
From: Steve Kulpa @ 1997-10-09 4:00 UTC (permalink / raw)
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
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-10-09 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-10-08 4:00 Help with VMS Backup Sergio Rotstein
1997-10-09 4:00 ` Steve Kulpa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox