- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Script Full and incremental backup
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
Forums
Discussions
Discussions
Discussions
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
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
10-02-2005 07:10 PM
10-02-2005 07:10 PM
Script Full and incremental backup
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.
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??
Thanks Geir
PS:
I'm running OpenVMS ALPHA V6.2-IH3. I know it's old, but it is not possible to upgrade the operating system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2005 07:40 PM
10-02-2005 07:40 PM
Re: Script Full and incremental backup
in case of '/since=backup and /record' I assume it'll backup only files modified or created since last backup.
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.
In restore operations either extract all files from specific save set or use /SELECT for specific files.
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2005 07:47 PM
10-02-2005 07:47 PM
Re: Script Full and incremental backup
Thanks for the answer, but then I must run the command manually.
I want to include it into a DCL-script, and let it run automatically in a batch job.
I think I must use one tape for each month, one for each week, and one for each year.
Geir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2005 08:29 PM
10-02-2005 08:29 PM
Re: Script Full and incremental backup
Allways keep journal files with /JOURNAL='file' to know, what files were backuped.
M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2005 06:53 AM
10-03-2005 06:53 AM
Re: Script Full and incremental backup
1. We do weekly full backups ($BACKUP/IMAGE/RECORD). The first weekly backup is our monthly backup.
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.
If you want to restore files since the last the full backup, you can use the the cumulative incremental backup tape.
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.
Lawrence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2005 07:55 AM
10-03-2005 07:55 AM
Re: Script Full and incremental backup
Attached is a procedure I wrote to scan the disks and report the backup dates on the volume, both last full and last incremental.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2005 11:28 PM
10-03-2005 11:28 PM
Re: Script Full and incremental backup
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
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 02:33 AM
10-05-2005 02:33 AM
Re: Script Full and incremental backup
if disk dies, you must restore the last full backup and all increments from last full backup which you have.
For particular period you must to do the same to the period.
For restore specific file use /JOURNAL for easiest finding where the increment-saveset with the file is.
Next idea is: use some backup manager for this (ABS or Data Protector)
Petr
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2005 04:04 AM
10-05-2005 04:04 AM
Re: Script Full and incremental backup
http://h71000.www7.hp.com/openvms/journal/v3/backup_strategies.html
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 :-)
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 06:44 PM
10-13-2005 06:44 PM
Re: Script Full and incremental backup
Is it possible to get daynumber of the year from a DCL shell script??
Regards geir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 06:54 PM
10-13-2005 06:54 PM
Re: Script Full and incremental backup
"Is it possible to get daynumber of the year from a DCL shell script??"
$ now = f$time()
$ doy = f$cvtime(now,,"DAYOFYEAR")
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2005 06:54 PM
10-13-2005 06:54 PM
Re: Script Full and incremental backup
$ today_time = f$cvtime("TODAY") !time string at midnight today
$ i = 1
$more_days:
$ if f$cvtime("1-JAN:+"+f$string(i)+"-",,).les.today_time
$ then
$ i = i + 1
$ goto more_days
$ endif
$ write sys$output 'i'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2005 09:41 PM
10-15-2005 09:41 PM
Re: Script Full and incremental backup
Sometime I have to get the time to read "new features" manuals carefully: back to which VMS version is the DAYOFYEAR item available ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2005 11:51 PM
10-15-2005 11:51 PM
Re: Script Full and incremental backup
I first saw it after the 8.2 upgrade, it's probably post 7.3.
Another way to calculate it, without loops:
$! JanFebMar AprMay Jun Jul Aug Sep Oct Nov Dec
$ month_day_offset = "0/0/31/59/90/120/151/181/212/243/273/304/334/365"
$ cdate = f$cvtime(test_date,"COMPARISON","DATE")
$ year = f$element(0,"-",cdate)
$ mnum = f$integer(f$element(1,"-",cdate))
$ doy = f$integer(f$element(2,"-",cdate)) + -
f$integer(f$element(mnum,"/",month_day_offset))
$! correct doy for leap years.
$ if f$extract(0,1,f$cvtime("28-FEB-''year':12:00+1-00:00","ABSOLUTE")) -
.eqs. 2 then doy = doy + 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2005 06:49 PM
10-16-2005 06:49 PM
Re: Script Full and incremental backup
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.
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.
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.
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).
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.
Thanks Geir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2005 08:03 PM
10-16-2005 08:03 PM
Re: Script Full and incremental backup
The most basic point is to give the daily saveset a unique name (based on date)
$ BACKUP
and on restore, you use the /SELECT qualifier in restoring just that file:
$ BACKUP
regardless you made an incremental backup or a full one.
I think it will work as well when a full image backup has been done in stead of a file-by-file one:
$ BACKUP/IMAGE
Willem
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2005 08:41 PM
10-16-2005 08:41 PM
Re: Script Full and incremental backup
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?
Thanks,
Geir