Operating System - OpenVMS
1828584 Members
2408 Online
109982 Solutions
New Discussion

Re: how to restore single file from /image backup

 
SOLVED
Go to solution
Atul Subhedar
Occasional Advisor

how to restore single file from /image backup

I want to restore a single file from a backup that I have.
Details:
1. OpenVMS AXP version V6.2
2. Command that was used to take backup , BACKUP/IMAGE/IGNORE=(INTERLOCK,LABEL)/BLOCK=65534/NOCRC/GROUP=0/RECORD/NOASSIST abs$DKD500: abs$MKB600:Wabs$DKD500.BAK/SAVE/MEDIA_FORMAT=COMPACT

3. Tape is monted as , mount/for abs$mkb600:

I want to restore some files from this backup set that I have, how to do it?

Can anyone help ?
Thanks in advance

Regards,

Atul

4 REPLIES 4
Ian Miller.
Honored Contributor
Solution

Re: how to restore single file from /image backup

Use the select qualifier
$ BACKUP abs$MKB600:Wabs$DKD500.BAK/SAVE/SELECT=(aaa.ccc)
[]

would find files matching aaa.ccc in any directory and restore them to your current default directory.
____________________
Purely Personal Opinion
Gregg Parmentier
Frequent Advisor

Re: how to restore single file from /image backup


If you're restoring to a directory that isn't owned by the account that's doing the restore, I'd suggest /by=original on that as well. If you don't do that, it'll try to make the file with the ownership of the account running backup, and it might not let you create the file.

Also, if you have more than one saveset on the tape and the file you want isn't in the firet one on the tape, specifiy the saveset name so it will skip to the one you want rather than reading through every saveset.
Jan van den Ende
Honored Contributor

Re: how to restore single file from /image backup

Atul,

To begin with:
WELCOME to the VMS Forum!

Good answers were given so far.

Let me extend a bit on them:

For the /SELECT=
you can also use directory specs,
and, you can also use wildcards.

An example:
/SELECT=[TOPDIR.SUBDIR.PART*...]AB*.DAT

would select all files with names starting AB amd filetype .DAT in any directory PART* in [topdir.subdir], and in all its subdirectories.

In general, it is preferable if the ... subdirectories wildcard is used, to also specify an output directory [PUT.IT.HERE...]

That way, the directory structure down from .PART* in the example is reconstructed in PUT.IT.HERE, giving [PUT.IT.HERE.PART...]

If you do not know the exact directory structure of filenames, you can first create a listing with
$ BACKUP/LIST= abs$MKB600:wabs$dkd500.bak/sav


hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Atul Subhedar
Occasional Advisor

Re: how to restore single file from /image backup

Hey,
Ian your solution directly hit the net.
Thanks a lot for all the replys.
Great to be here on VMS forum.

Regards,

Atul