<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OpenVMS and Backup Script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736361#M74642</link>
    <description>Yeah that would be great to have those scripts. Could you please zip them? Thanks everyone for the great responses</description>
    <pubDate>Thu, 23 Feb 2006 09:28:28 GMT</pubDate>
    <dc:creator>Ryan Frillman</dc:creator>
    <dc:date>2006-02-23T09:28:28Z</dc:date>
    <item>
      <title>OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736349#M74630</link>
      <description>I want to be able to write a script that would sit in a queue and automatically run daily, weekly, and monthly backups. I don't know how to determine which day is the end of the week and which day is the beginning of the month. Does anyone have a script that I could follow?</description>
      <pubDate>Tue, 21 Feb 2006 15:01:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736349#M74630</guid>
      <dc:creator>Ryan Frillman</dc:creator>
      <dc:date>2006-02-21T15:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736350#M74631</link>
      <description>No scripts, but a short example:&lt;BR /&gt;&lt;BR /&gt;$ w = F$CVTIME (F$TIME(),,"WEEKDAY")&lt;BR /&gt;$ show symbol w&lt;BR /&gt;  W = "Tuesday"&lt;BR /&gt;$&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;A month does always begin with day 1, no?&lt;BR /&gt;&lt;BR /&gt;$ d = F$CVTIME (F$TIME(),,"DAY")&lt;BR /&gt;$ show symbol d&lt;BR /&gt;  D = "21"&lt;BR /&gt;$</description>
      <pubDate>Tue, 21 Feb 2006 15:19:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736350#M74631</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2006-02-21T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736351#M74632</link>
      <description>You could have it run every day, and check&lt;BR /&gt;for day of month = 1, and day of week = X,&lt;BR /&gt;where X is your "end of the week" day.  For&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;$ write sys$output F$CVTIME( "", , "DAY")&lt;BR /&gt;21&lt;BR /&gt;&lt;BR /&gt;$ write sys$output F$CVTIME( "", , "WEEKDAY")&lt;BR /&gt;Tuesday&lt;BR /&gt;&lt;BR /&gt;See "HELP LEXICALS F$CVTIME".&lt;BR /&gt;&lt;BR /&gt;Running every day can be done by having the&lt;BR /&gt;procedure re-SUBMIT itself with an&lt;BR /&gt;appropriate /AFTER option.  For example, to&lt;BR /&gt;run again tomorrow at 00:10:00, add code&lt;BR /&gt;like this to the end of the procedure:&lt;BR /&gt;&lt;BR /&gt;$!&lt;BR /&gt;$! Re-submit the latest version of this procedure.&lt;BR /&gt;$!&lt;BR /&gt;$ CPR = F$ENVIRONMENT( "PROCEDURE")&lt;BR /&gt;$ CPR = CPR- F$PARSE( CPR, , , "VERSION")&lt;BR /&gt;$!&lt;BR /&gt;$ IF (CPR .NES. "")&lt;BR /&gt;$ THEN&lt;BR /&gt;$    SUBMIT  -&lt;BR /&gt;      /AFTER = "TOMORROW+ 00:10:00"  -&lt;BR /&gt;      /NOPRINTER  -&lt;BR /&gt;      'CPR'&lt;BR /&gt;$ ENDIF&lt;BR /&gt;&lt;BR /&gt;(Of course, the real thing has better&lt;BR /&gt;indentation than you can see here.)&lt;BR /&gt;&lt;BR /&gt;I have a SYS$MANAGER:DAILY.COM which does a&lt;BR /&gt;few things, like:&lt;BR /&gt;&lt;BR /&gt;Submit the daily incremental BACKUP job.&lt;BR /&gt;Run a procedure to check for nearly full disks.&lt;BR /&gt;Purge some useless log files.&lt;BR /&gt;Et c.</description>
      <pubDate>Tue, 21 Feb 2006 15:21:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736351#M74632</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-21T15:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736352#M74633</link>
      <description>Another quick way to get the current day is:&lt;BR /&gt;&lt;BR /&gt;f$element(2,"-",f$element(0," ",f$cvtime()))&lt;BR /&gt;&lt;BR /&gt;I use this all the time and it works great.&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 21 Feb 2006 16:04:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736352#M74633</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2006-02-21T16:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736353#M74634</link>
      <description>Is there any way I could see that SYS$MANAGER:DAILY.COM script just the daily backup part not all the rest.</description>
      <pubDate>Tue, 21 Feb 2006 17:49:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736353#M74634</guid>
      <dc:creator>Ryan Frillman</dc:creator>
      <dc:date>2006-02-21T17:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736354#M74635</link>
      <description>There is no way to do this from the BACKUP command only.  You will have to have a "driver" DCL script that determines what day it is and then executes  (with @SYS$MANAGER:DAILY) the daily script during the weekdays, executes (with @SYS$MANAGER:WEEKLY) the weekly script when it is a weekend, using the F$CVTIME (F$TIME(),,"WEEKDAY", to determine if it is the day you want to run the weekly backups and then a check for the day of the month to determine it it is the first of the month (or whatever day of the month) for the monthly backups and executes the (with @SYS$MANAGER:MONTHLY) the monthly backups.&lt;BR /&gt;&lt;BR /&gt;I would say check for the Monthly backup first, then weekly and then daily.&lt;BR /&gt;&lt;BR /&gt;Phil</description>
      <pubDate>Tue, 21 Feb 2006 18:12:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736354#M74635</guid>
      <dc:creator>Phillip Thayer</dc:creator>
      <dc:date>2006-02-21T18:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736355#M74636</link>
      <description>&amp;gt; Is there any way I could see [...]&lt;BR /&gt;&lt;BR /&gt;Well, the BACKUP part is just this (again,&lt;BR /&gt;with better indentation): &lt;BR /&gt;&lt;BR /&gt;$!&lt;BR /&gt;$! Nightly incremental BACKUP.&lt;BR /&gt;$!&lt;BR /&gt;$ CPR := HOME_BACKUP:[BACKUP]INCR.COM&lt;BR /&gt;$ CPRF = F$SEARCH( CPR)&lt;BR /&gt;$ IF (CPRF .NES. "")&lt;BR /&gt;$ THEN&lt;BR /&gt;$!&lt;BR /&gt;$    LOG = CPRF-  -&lt;BR /&gt;      F$PARSE( CPRF, , , "VERSION")- F$PARSE( CPRF, , , "TYPE")+ ".LOG"&lt;BR /&gt;$!&lt;BR /&gt;$    SUBMIT  -&lt;BR /&gt;      /AFTER = 01:10  -&lt;BR /&gt;      /LOG = 'LOG'  -&lt;BR /&gt;      /NOPRINTER  -&lt;BR /&gt;      /USER = BACKUP -&lt;BR /&gt;      'CPR'&lt;BR /&gt;$!&lt;BR /&gt;$    PURGE /KEEP = 31  'LOG'&lt;BR /&gt;$!&lt;BR /&gt;$ ENDIF&lt;BR /&gt;$!&lt;BR /&gt;&lt;BR /&gt;So, my daily incremental BACKUP jobs start&lt;BR /&gt;at about 1:10 every day.  If you'd like any&lt;BR /&gt;additional stuff, send some e-mail to&lt;BR /&gt;sms@antinode-org (roughly).&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Feb 2006 19:22:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736355#M74636</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-21T19:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736356#M74637</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Attached a part of my backup routine, maybee you can pick out some dcl-code from it. &lt;BR /&gt;&lt;BR /&gt;/Klaes-Goran</description>
      <pubDate>Wed, 22 Feb 2006 03:31:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736356#M74637</guid>
      <dc:creator>Klaes-Göran Carlsson</dc:creator>
      <dc:date>2006-02-22T03:31:18Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736357#M74638</link>
      <description>Steven wrote:&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;For example, to&lt;BR /&gt;run again tomorrow at 00:10:00, add code&lt;BR /&gt;like this to the end of the procedure:&lt;BR /&gt;&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;I do MUCH prefer to put the re-submitting code at the BEGINNING of any repeating batch jobs!&lt;BR /&gt;&lt;BR /&gt;This guarantees, that regardless of ANY things happening during the run, the next run will be in the queue.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Wed, 22 Feb 2006 05:29:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736357#M74638</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-02-22T05:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736358#M74639</link>
      <description>&amp;gt; I do MUCH prefer to put the re-submitting&lt;BR /&gt;&amp;gt; code at the BEGINNING of any repeating&lt;BR /&gt;&amp;gt; batch jobs!&lt;BR /&gt;&lt;BR /&gt;The BEGINNING of my DAILY.COM looks like THIS:&lt;BR /&gt;&lt;BR /&gt;$!&lt;BR /&gt;$!    Daily tasks.  Run once per day.&lt;BR /&gt;$!&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$!&lt;BR /&gt;&lt;BR /&gt;&amp;gt; This guarantees, that regardless of ANY&lt;BR /&gt;&amp;gt; things happening during the run, the next&lt;BR /&gt;&amp;gt; run will be in the queue.&lt;BR /&gt;&lt;BR /&gt;It's a rare problem which has but one&lt;BR /&gt;solution.&lt;BR /&gt;&lt;BR /&gt;When I first started using VMS, I was often&lt;BR /&gt;puzzled by the significance of 12:00 PM, but&lt;BR /&gt;eventually I figured it out.</description>
      <pubDate>Wed, 22 Feb 2006 08:32:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736358#M74639</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2006-02-22T08:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736359#M74640</link>
      <description>I have 'made' a set off utilities more than 10 years ago, determining all the facts about a certain date; they know about day ofv the week, weekends and hollidays; beginning and ending off a month and quarter&lt;BR /&gt;self explaining, parameter parsing, almost like a lexical function; You can use them within amother dcl script, that can start off the backups selectively; let me know if yoy like to get them zipped.&lt;BR /&gt;&lt;BR /&gt;F$FIRSTWORKDAY.COM;4&lt;BR /&gt;F$HOLIDAY.COM;14   &lt;BR /&gt;F$JULIAN.COM;12    &lt;BR /&gt;F$JULIAN_DATE.COM;3&lt;BR /&gt;F$KWARTAALNUM.COM;4&lt;BR /&gt;F$KWARTAAL_DATES.COM;4&lt;BR /&gt;F$LASTWORKDAY.COM;4&lt;BR /&gt;F$NEXTWORKDAY.COM;5&lt;BR /&gt;F$NODE_NAME.COM;1  &lt;BR /&gt;F$PASEN.COM;11     &lt;BR /&gt;F$PREVWORKDAY.COM;7 &lt;BR /&gt;F$WEEKDAGNUM.COM;4 &lt;BR /&gt;F$WEEKNUM.COM;4    &lt;BR /&gt;F$WORKABLEDAYS.COM;7&lt;BR /&gt;F$WORKDAY.COM;7    &lt;BR /&gt;F$WORKDAYNO.COM;5  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Feb 2006 08:41:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736359#M74640</guid>
      <dc:creator>Ruud Dijt</dc:creator>
      <dc:date>2006-02-22T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736360#M74641</link>
      <description>Parhaps you would add your dcl to the archive at dcl.openvms.org?&lt;BR /&gt;&lt;BR /&gt;For more complex scheduling there are various commercial products.</description>
      <pubDate>Wed, 22 Feb 2006 09:15:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736360#M74641</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-02-22T09:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736361#M74642</link>
      <description>Yeah that would be great to have those scripts. Could you please zip them? Thanks everyone for the great responses</description>
      <pubDate>Thu, 23 Feb 2006 09:28:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736361#M74642</guid>
      <dc:creator>Ryan Frillman</dc:creator>
      <dc:date>2006-02-23T09:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: OpenVMS and Backup Script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736362#M74643</link>
      <description>Wow, that was my first 10 point! TY&lt;BR /&gt;Attached script for incremental backups, could be useful for copy/paste...more points?  :)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Feb 2006 05:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/openvms-and-backup-script/m-p/3736362#M74643</guid>
      <dc:creator>Klaes-Göran Carlsson</dc:creator>
      <dc:date>2006-02-24T05:44:10Z</dc:date>
    </item>
  </channel>
</rss>

