- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- OpenVMS and Backup Script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 07:01 AM
тАО02-21-2006 07:01 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 07:19 AM
тАО02-21-2006 07:19 AM
Re: OpenVMS and Backup Script
$ w = F$CVTIME (F$TIME(),,"WEEKDAY")
$ show symbol w
W = "Tuesday"
$
A month does always begin with day 1, no?
$ d = F$CVTIME (F$TIME(),,"DAY")
$ show symbol d
D = "21"
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 07:21 AM
тАО02-21-2006 07:21 AM
Re: OpenVMS and Backup Script
for day of month = 1, and day of week = X,
where X is your "end of the week" day. For
example:
$ write sys$output F$CVTIME( "", , "DAY")
21
$ write sys$output F$CVTIME( "", , "WEEKDAY")
Tuesday
See "HELP LEXICALS F$CVTIME".
Running every day can be done by having the
procedure re-SUBMIT itself with an
appropriate /AFTER option. For example, to
run again tomorrow at 00:10:00, add code
like this to the end of the procedure:
$!
$! Re-submit the latest version of this procedure.
$!
$ CPR = F$ENVIRONMENT( "PROCEDURE")
$ CPR = CPR- F$PARSE( CPR, , , "VERSION")
$!
$ IF (CPR .NES. "")
$ THEN
$ SUBMIT -
/AFTER = "TOMORROW+ 00:10:00" -
/NOPRINTER -
'CPR'
$ ENDIF
(Of course, the real thing has better
indentation than you can see here.)
I have a SYS$MANAGER:DAILY.COM which does a
few things, like:
Submit the daily incremental BACKUP job.
Run a procedure to check for nearly full disks.
Purge some useless log files.
Et c.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 08:04 AM
тАО02-21-2006 08:04 AM
Re: OpenVMS and Backup Script
f$element(2,"-",f$element(0," ",f$cvtime()))
I use this all the time and it works great.
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 09:49 AM
тАО02-21-2006 09:49 AM
Re: OpenVMS and Backup Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 10:12 AM
тАО02-21-2006 10:12 AM
Re: OpenVMS and Backup Script
I would say check for the Monthly backup first, then weekly and then daily.
Phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 11:22 AM
тАО02-21-2006 11:22 AM
Re: OpenVMS and Backup Script
Well, the BACKUP part is just this (again,
with better indentation):
$!
$! Nightly incremental BACKUP.
$!
$ CPR := HOME_BACKUP:[BACKUP]INCR.COM
$ CPRF = F$SEARCH( CPR)
$ IF (CPRF .NES. "")
$ THEN
$!
$ LOG = CPRF- -
F$PARSE( CPRF, , , "VERSION")- F$PARSE( CPRF, , , "TYPE")+ ".LOG"
$!
$ SUBMIT -
/AFTER = 01:10 -
/LOG = 'LOG' -
/NOPRINTER -
/USER = BACKUP -
'CPR'
$!
$ PURGE /KEEP = 31 'LOG'
$!
$ ENDIF
$!
So, my daily incremental BACKUP jobs start
at about 1:10 every day. If you'd like any
additional stuff, send some e-mail to
sms@antinode-org (roughly).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 07:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2006 09:29 PM
тАО02-21-2006 09:29 PM
Re: OpenVMS and Backup Script
"
For example, to
run again tomorrow at 00:10:00, add code
like this to the end of the procedure:
"
I do MUCH prefer to put the re-submitting code at the BEGINNING of any repeating batch jobs!
This guarantees, that regardless of ANY things happening during the run, the next run will be in the queue.
hth
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-22-2006 12:32 AM
тАО02-22-2006 12:32 AM
Re: OpenVMS and Backup Script
> code at the BEGINNING of any repeating
> batch jobs!
The BEGINNING of my DAILY.COM looks like THIS:
$!
$! Daily tasks. Run once per day.
$!
$ SET NOON
$!
> This guarantees, that regardless of ANY
> things happening during the run, the next
> run will be in the queue.
It's a rare problem which has but one
solution.
When I first started using VMS, I was often
puzzled by the significance of 12:00 PM, but
eventually I figured it out.