Home · Articles · Downloads · Hobby Wear · Forums · Web Links · News CategoriesSaturday, May 18, 2024
Navigation
Home
Articles
Downloads
Hobby Wear
FAQ
Forums
Web Links
News Categories
Contact Us
Photo Gallery
OpenVMS Bigot
Search
Users Online
Guests Online: 3
No Members Online

Registered Members: 7,708
Newest Member: nifseg
Sponsors
Island Computer
View Thread
OpenVMS Hobbyist Program | VAX Systems Forums | VAX Software Forum
Author ZIPped save_set - is all hope lost?
Micha
Member

Posts: 16
Joined: 16.12.06
Posted on March 09 2007 21:04
Hi,

I run into a problem with my archives. So far I did only archiving. Yesterday I tried for the first time retrieve some files from an archive.

I use to perform archiving of my files in the following way:

* create a backup /save_set with all my files
* zip it into a zip archive which I then put per FTP on some backup medium (my PC in that case).

It looks like even a sequence of ZIP and UNZIP on the same VAX renders a backup useless. Here is an example session for better illustration:

---------------
$ backup [...]*.* myfiles.bak /save_set/exclude=myfiles.bak
$ zip myfiles myfiles.bak
$ del myfiles.bak;*

$ unzip myfiles
$ backup/list myfiles.bak/save_set
Listing of save set(s)

%BACKUP-F-NOTSAVESET, DISK$USER_2:[BERGER.BAK]MYFILES.BAK;1 is not a BACKUP save set
----------------

Is there any hope to repair such a save_set file so it will work again?
I know ZIP/UNZIP are not part of the original VMS software but come rather from the unix world. And I know there are several vms-adapted versions around.
My VAX is currently switched off, I will put the version numbers that I am using in here later...


Regards

Michael
Author Re: ZIPped save_set - is all hope lost?
brad
Member

User Avatar

Posts: 134
Location: Hopedale, MA USA
Joined: 15.12.05
Posted on March 10 2007 06:14
[quote:b5c314f902="Micha"]Hi,
[...]
It looks like even a sequence of ZIP and UNZIP on the same VAX renders a backup useless. Here is an example session for better illustration:

---------------
$ backup [...]*.* myfiles.bak /save_set/exclude=myfiles.bak
$ zip myfiles myfiles.bak
$ del myfiles.bak;*

$ unzip myfiles
$ backup/list myfiles.bak/save_set
Listing of save set(s)

%BACKUP-F-NOTSAVESET, DISK$USER_2:[BERGER.BAK]MYFILES.BAK;1 is not a BACKUP save set
----------------
[...]

I've noticed that you did not use any of the "usual" switches for the ZIP/UNZIP sequence. For me, the "usual" switches are "-V9" for ZIP and "-VV" for UNZIP.
As you might be able to tell, "V" tells ZIP to save VMS file attributes.

I have used ZIP/UNZIP on VAX VMS 7.2/7.3, and on Alpha VMS V7.2-1 through V8.3 without incident for many years. I don't know if you can repair this problem, though.

[/quote:b5c314f902]
http://www.turquoisewitch.com/~bradh
Author
Micha
Member

Posts: 16
Joined: 16.12.06
Posted on March 10 2007 06:46
Hi Brad,

and thank you very much for your reply. In fact I was not aware there are VMS-specific switches that should be used. I am relatively new to VMS, probably I do not yet have a really good understandig of its file attributes concept.

Your hint is something to get started with for me.

EDIT: I cannot figure out how to use these options. My versions of ZIP/UNZIP understand something like "verbose" when I try to use -Vsomething
I am using ZIP 2.1 and UNZIP 5.42, both compiled with VAX-C (the .vax_vaxc_exe versions). Wich versions do you use and where could I get them? And could you give an example? Sorry for all those questions.


Regards

Michael
Author
brad
Member

User Avatar

Posts: 134
Location: Hopedale, MA USA
Joined: 15.12.05
Posted on March 10 2007 08:01
[quote:0e2d1ba771="Micha"]
[...]
EDIT: I cannot figure out how to use these options. My versions of ZIP/UNZIP understand something like "verbose" when I try to use -Vsomething
I am using ZIP 2.1 and UNZIP 5.42, both compiled with VAX-C (the .vax_vaxc_exe versions). Wich versions do you use and where could I get them? And could you give an example? Sorry for all those questions.
[...]

No problem.

The versions of ZIP/UNZIP that I use are ZIP 2.32 and UNZIP 5.52. I don't remember where I got them, but they should be available on the freeware disks

<http://h71000.www7.hp.com/freeware/>

Just browse the distributions.

Now the problem you are having _might_ arise from that fact that the "-V" switch must be capitalized, and in quotes, as I show here; otherwise the system will interpret them as -v, which is verbose (as you have discovered).

zip -h (and unzip -h) should show you all available switches for your version. You may not need to get the latest and greatest version.

Good luck.
[/quote:0e2d1ba771][/b]
http://www.turquoisewitch.com/~bradh
Author
Micha
Member

Posts: 16
Joined: 16.12.06
Posted on March 10 2007 23:43
Thanks again for those hints. It really was not clear to me before that i have to put the V into quotes to make the program see it as an uppercase letter.

Just by some trial and error I found, that just a "-V" in the zip line does the job, the subsequent unzip does not even need a V:

$ zip "-V" myarchive myarchive.bak
...
$ unzip myarchive

Looks like the unzip gets alerted automatically there is still something else...

A friend of mine just showed me another nice workaround that would help me to rescue my existing backups:

First he fixed the file with a guessed block size of 512:

$ SET FILE/ATTRIBUTES=(RFM:FIX,MRS:512,LRL:512,ORG=SEQ,RAT=NONE) myarchive.bak

Aftwer that is done a subsequent
$ BACKUP/LIST myarchive.bak/SAVE_SET

will show the correct block size, which in most case will be 32256
Another
$ SET FILE/ATTRIBUTES=(RFM:FIX,MRS:xxxxx,LRL:xxxxx,ORG=SEQ,RAT=NONE)
will then fix the save_set.

(Since 32256 is the most likely answer, that will probably save some effort if applied as first guess smiley )

Best Wishes

Michael
Author
imiller
Administrator

User Avatar

Posts: 277
Location: UK
Joined: 24.02.06
Posted on May 02 2007 05:31
For fixing the attributes of backup savesets you can use

http://h71000.www7.hp.com/freeware/freeware80/000tools/reset_backup_saveset_file_attributes.com
http://www.encompasserve.org/~miller/
Jump to Forum:
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Member Poll
Are you going to OpenVMS Boot Camp 2016?

Yes

No

You must login to vote.
Shoutbox
You must login to post a message.

malmberg
August 04 2022
No more VAX hobbyist licenses. Community licenses for Alpha/IA64/X86_64 VMS Software Inc. Commercial VMS software licenses for VAX available from HPE.

ozboomer
July 20 2022
Just re-visiting.. No more hobbyist licenses? Is that from vmssoftware.com, no 'community' licenses?

valdirfranco
July 01 2022
No more hobbyist license...sad

mister_wavey
February 12 2022
I recall that the disks failed on the public access VMS systems that included Fafner

parwezw
January 03 2022
Anyone know what happened to FAFNER.DYNDS.ORG? I had a hobbyist account here but can longer access the site.

gtackett
October 27 2021
Make that DECdfs _2.1A_ for Vax

gtackett
October 27 2021
I'm looking for DECdfs V2.4A kit for VAX. Asking here just in case anyone is still listening.

MarkRLV
September 17 2021
At one time, didn't this web site have a job board? I would love to use my legacy skills one last time in my career.

malmberg
January 18 2021
New Hobbyist PAKs for VAX/VMS are no longer available according to reports. Only commercial licenses are reported to be for sale from HPE

dfilip
January 16 2021
Can someone please point me to hobbyist license pak? I'm looking for VAX/VMS 7.1, DECnet Phase IV, and UCX/TCPIP ... have the 7.1 media, need the license paks ... thanks!

Bart
October 16 2020
OpenVMS, and this website!

malmberg
September 05 2020
VSI community non-commercial licenses for AXP/IA64 are available now.

malmberg
September 05 2020
See the forum about licensing. Don't know if HPE hobby licenses still being issued. Commercial licenses still being sold.

silfox70
September 01 2020
I need the license for OpenVMS7.3. Where can I find them?

malmberg
August 29 2020
Eisner, which is currently being moved, got an SSH update and the keys were updated to more modern encryption standards.

Shoutbox Archive