From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d6ff682f7702caa1 X-Google-Attributes: gid1164f8,public From: Steve Kulpa Subject: Re: Help with VMS Backup Date: 1997/10/09 Message-ID: <343D1C34.51B35C07@envirosys.com>#1/1 X-Deja-AN: 279020969 References: <343C22FD.41C6@mbi.ucla.edu> X-Priority: 3 (Normal) Reply-To: NO_S*P*A*M_skulpa@envirosys.com Organization: Environmental Systems Corporation Newsgroups: comp.sys.dec 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 --