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
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] |
|
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
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] |
|
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 )
Best Wishes
Michael |
|
Author |
|
imiller
Administrator
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 |
|