<?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: Script Full and incremental backup in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639891#M71920</link>
    <description>David, parhaps you could contribute your DCL to dcl.openvms.org?&lt;BR /&gt;&lt;BR /&gt;Also when attaching DCL here its easiest if you name them .txt to prevent web browsers making incorrect asummptions about file contents based on the .com</description>
    <pubDate>Tue, 04 Oct 2005 06:28:27 GMT</pubDate>
    <dc:creator>Ian Miller.</dc:creator>
    <dc:date>2005-10-04T06:28:27Z</dc:date>
    <item>
      <title>Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639885#M71914</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to make a DCL-script for incremental backup.  I know that backup have a qualifier called  /since=backup and /record which is essential. &lt;BR /&gt;&lt;BR /&gt;I want to take monhly, weekly and daily backup. If I want to restore files from a particular period, what must I do. Any idea??&lt;BR /&gt;&lt;BR /&gt;Thanks Geir&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PS:&lt;BR /&gt;I'm running OpenVMS ALPHA V6.2-IH3. I know it's old, but it is not possible to upgrade the operating system.</description>
      <pubDate>Mon, 03 Oct 2005 02:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639885#M71914</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2005-10-03T02:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639886#M71915</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;in case of  '/since=backup and /record' I assume it'll backup only files modified or created since last backup.&lt;BR /&gt;For specific period of time is the best to use /SINCE="TODAY-7-" or just "-7-", that means past 7 days together with qualifiers /MODIFIED /CREATED which selects only modified or created files in that period.&lt;BR /&gt;In restore operations either extract all files from specific save set or use /SELECT for specific files.&lt;BR /&gt;&lt;BR /&gt;Mike</description>
      <pubDate>Mon, 03 Oct 2005 02:40:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639886#M71915</guid>
      <dc:creator>Mike Reznak</dc:creator>
      <dc:date>2005-10-03T02:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639887#M71916</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks for the answer, but then I must run the command manually. &lt;BR /&gt;&lt;BR /&gt;I want to include it into a DCL-script, and let it run automatically in a batch job. &lt;BR /&gt;&lt;BR /&gt;I think I must use one tape for each month, one for each week, and one for each year. &lt;BR /&gt;&lt;BR /&gt;Geir</description>
      <pubDate>Mon, 03 Oct 2005 02:47:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639887#M71916</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2005-10-03T02:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639888#M71917</link>
      <description>If you have tape library with dozens or hundreds of tapes then regular batch job with different tapes is the best solution. Different jobs can call one procedure with different parameters, which tell, what period of time to backup and then it chooses specific tape. If you have just single tape drive, then you can either backup all types of backups on one tape or keep switching tapes, which is rather not suitable for regular batch processing.&lt;BR /&gt;Allways keep journal files with /JOURNAL='file' to know, what files were backuped.&lt;BR /&gt;&lt;BR /&gt;M</description>
      <pubDate>Mon, 03 Oct 2005 03:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639888#M71917</guid>
      <dc:creator>Mike Reznak</dc:creator>
      <dc:date>2005-10-03T03:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639889#M71918</link>
      <description>geir: &lt;BR /&gt;1. We do weekly full backups ($BACKUP/IMAGE/RECORD). The first weekly backup is our monthly backup. &lt;BR /&gt;2. For daily backups, I recommend cumulative incremental backups. On most of our systems our daily backups are culmulative incremental $BACKUP. [We have a couple systems that we do full daily backups on.] This way files created since the last backup are often on more than one tape except those not on the previous incremental tape. Our January monthly is a permanent archive.&lt;BR /&gt;If you want to restore files since the last the full backup, you can use the the cumulative incremental backup tape. &lt;BR /&gt; You could do non-cumulative incremental backups but then you have to know what day the file was changed last. If a disk went bad and the tape also had a problem, you would lose all the changes and new files for that day.&lt;BR /&gt;Lawrence</description>
      <pubDate>Mon, 03 Oct 2005 13:53:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639889#M71918</guid>
      <dc:creator>Lawrence Czlapinski</dc:creator>
      <dc:date>2005-10-03T13:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639890#M71919</link>
      <description>I take monthly fulls and daily incrementals and use saveset manager to make a cumulative incremental.  I keep the 2 most recent incrementals and 2 most recent cumulative incrementals.&lt;BR /&gt;&lt;BR /&gt;Attached is a procedure I wrote to scan the disks and report the backup dates on the volume, both last full and last incremental.</description>
      <pubDate>Mon, 03 Oct 2005 14:55:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639890#M71919</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2005-10-03T14:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639891#M71920</link>
      <description>David, parhaps you could contribute your DCL to dcl.openvms.org?&lt;BR /&gt;&lt;BR /&gt;Also when attaching DCL here its easiest if you name them .txt to prevent web browsers making incorrect asummptions about file contents based on the .com</description>
      <pubDate>Tue, 04 Oct 2005 06:28:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639891#M71920</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-10-04T06:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639892#M71921</link>
      <description>Hallo geir,&lt;BR /&gt;if disk dies, you must restore the last full backup and all increments from last full backup which you have. &lt;BR /&gt;For particular period you must to do the same to the period.&lt;BR /&gt;For restore specific file use /JOURNAL for easiest finding where the increment-saveset with the file is.&lt;BR /&gt;&lt;BR /&gt;Next idea is: use some backup manager for this (ABS or Data Protector)&lt;BR /&gt;Petr</description>
      <pubDate>Wed, 05 Oct 2005 09:33:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639892#M71921</guid>
      <dc:creator>Petr Spisek</dc:creator>
      <dc:date>2005-10-05T09:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639893#M71922</link>
      <description>this article&lt;BR /&gt;&lt;A href="http://h71000.www7.hp.com/openvms/journal/v3/backup_strategies.html" target="_blank"&gt;http://h71000.www7.hp.com/openvms/journal/v3/backup_strategies.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;is always worth reading when considering backup strategies. The main thing to consider what you want to be able restore then only backup those files :-)</description>
      <pubDate>Wed, 05 Oct 2005 11:04:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639893#M71922</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2005-10-05T11:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639894#M71923</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Is it possible to get daynumber of the year from a DCL shell script??&lt;BR /&gt;&lt;BR /&gt;Regards geir</description>
      <pubDate>Fri, 14 Oct 2005 01:44:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639894#M71923</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2005-10-14T01:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639895#M71924</link>
      <description>&lt;BR /&gt;"Is it possible to get daynumber of the year from a DCL shell script??"&lt;BR /&gt;&lt;BR /&gt;$ now = f$time()&lt;BR /&gt;$ doy = f$cvtime(now,,"DAYOFYEAR")&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Oct 2005 01:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639895#M71924</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2005-10-14T01:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639896#M71925</link>
      <description>A very simple one is the following loop, just counting from 1-JAN until today:&lt;BR /&gt;&lt;BR /&gt;$ today_time = f$cvtime("TODAY") !time string at midnight today&lt;BR /&gt;$ i = 1&lt;BR /&gt;$more_days:&lt;BR /&gt;$ if f$cvtime("1-JAN:+"+f$string(i)+"-",,).les.today_time&lt;BR /&gt;$  then&lt;BR /&gt;$   i = i + 1&lt;BR /&gt;$   goto more_days&lt;BR /&gt;$ endif&lt;BR /&gt;$ write sys$output 'i'&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Oct 2005 01:54:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639896#M71925</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-10-14T01:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639897#M71926</link>
      <description>Davids answer is superior of course.&lt;BR /&gt;Sometime I have to get the time to read "new features" manuals carefully: back to which VMS version is the DAYOFYEAR item available ?</description>
      <pubDate>Sun, 16 Oct 2005 04:41:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639897#M71926</guid>
      <dc:creator>Joseph Huber_1</dc:creator>
      <dc:date>2005-10-16T04:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639898#M71927</link>
      <description>"Sometime I have to get the time to read "new features" manuals carefully: back to which VMS version is the DAYOFYEAR item available ?"&lt;BR /&gt;&lt;BR /&gt;I first saw it after the 8.2 upgrade, it's probably post 7.3.&lt;BR /&gt;&lt;BR /&gt;Another way to calculate it, without loops:&lt;BR /&gt;$!                    JanFebMar AprMay Jun Jul Aug Sep Oct Nov Dec&lt;BR /&gt;$ month_day_offset = "0/0/31/59/90/120/151/181/212/243/273/304/334/365"&lt;BR /&gt;$ cdate = f$cvtime(test_date,"COMPARISON","DATE")&lt;BR /&gt;$ year = f$element(0,"-",cdate)&lt;BR /&gt;$ mnum = f$integer(f$element(1,"-",cdate))&lt;BR /&gt;$ doy = f$integer(f$element(2,"-",cdate)) + -&lt;BR /&gt;        f$integer(f$element(mnum,"/",month_day_offset))&lt;BR /&gt;$! correct doy for leap years.&lt;BR /&gt;$ if f$extract(0,1,f$cvtime("28-FEB-''year':12:00+1-00:00","ABSOLUTE")) -&lt;BR /&gt;        .eqs. 2 then doy = doy + 1</description>
      <pubDate>Sun, 16 Oct 2005 06:51:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639898#M71927</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2005-10-16T06:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639899#M71928</link>
      <description>Hi everyone,&lt;BR /&gt;&lt;BR /&gt;The reason for the incremtnal backup problems is that some gay on my job, expect/want  me to make a incremental backup script. Today we take full backup each day, with help from a backup script. The tape rotate every week, and at the end of the month we take full backup. &lt;BR /&gt;&lt;BR /&gt;I asked the gay, why he want to take incremental backup, since we backup every file each dat. He told me that if he delete a file in the middle of the week, the new backup will overwrite the file with new contents. And with incremental backup, he have at least some more days to regret the deltion of the file.&lt;BR /&gt;&lt;BR /&gt;So now I try to make a backup com file, that start the week on monday with full backup, and the next 6-days take incremental backup(on the same tape). Next monday  with new week backup and incremental backups etc. &lt;BR /&gt;&lt;BR /&gt;I think a good solutions would be four week week tapes, and one month backup tape for each system. I also think that if I could start the tape backup with full backup, and later incremental backups (/norewind). &lt;BR /&gt;&lt;BR /&gt;If some of you had comments, it would be great. If you some of you want to read the backup script we use today, and want to improve it,(for use with incrmental backup) it would be nice. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks Geir</description>
      <pubDate>Mon, 17 Oct 2005 01:49:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639899#M71928</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2005-10-17T01:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639900#M71929</link>
      <description>Geir,&lt;BR /&gt;&lt;BR /&gt;&lt;INCREMENTAL&gt; is not the solution. It will speed up the backup procedure if a full backup would take too much time (esapcially when just a few files are actually updated), but even that may cause a problem in restore.&lt;BR /&gt;The most basic point is to give the daily saveset a unique name (based on date)&lt;BR /&gt;&lt;BR /&gt;$ BACKUP &lt;DISK&gt;:[&lt;ROOTPATH&gt;...]*.*;* &lt;TAPE&gt;:yymmdd.bck&lt;BR /&gt;&lt;BR /&gt;and on restore, you use the /SELECT qualifier in restoring just that file:&lt;BR /&gt;&lt;BR /&gt;$ BACKUP &lt;TAPE&gt;:yymmdd.bck/saveset /SELECT=&lt;FILES_TO_BE_RESTORED&gt; &lt;DISK&gt;:[&lt;PATH&gt;]&lt;BR /&gt;&lt;BR /&gt;regardless you made an incremental backup or a full one. &lt;BR /&gt;&lt;BR /&gt;I think it will work as well when a full image backup has been done in stead of a file-by-file one:&lt;BR /&gt;$ BACKUP/IMAGE &lt;DISK&gt;: &lt;TAPE&gt;:yymmdd.bck/SAVE_SET&lt;BR /&gt;&lt;BR /&gt;Willem&lt;/TAPE&gt;&lt;/DISK&gt;&lt;/PATH&gt;&lt;/DISK&gt;&lt;/FILES_TO_BE_RESTORED&gt;&lt;/TAPE&gt;&lt;/TAPE&gt;&lt;/ROOTPATH&gt;&lt;/DISK&gt;&lt;/INCREMENTAL&gt;</description>
      <pubDate>Mon, 17 Oct 2005 03:03:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639900#M71929</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2005-10-17T03:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Script Full and incremental backup</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639901#M71930</link>
      <description>Willem,&lt;BR /&gt;&lt;BR /&gt;Thanks for the answer. Do you also think I should make more savesets on a tape, and use the /norwind qualifier?   Or would it be the best solutions to have a tape for each save set?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Geir</description>
      <pubDate>Mon, 17 Oct 2005 03:41:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/script-full-and-incremental-backup/m-p/3639901#M71930</guid>
      <dc:creator>geir_2</dc:creator>
      <dc:date>2005-10-17T03:41:52Z</dc:date>
    </item>
  </channel>
</rss>

