Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Saveset Restore

Sentosa
Frequent Advisor

Saveset Restore

Dear Sir/Madam,

Could anyone help me to solve the restore problem?

I want to restore around 100 files from save set but the protection is different from the original.

What parameter i need to use with backup command?

Thanks
Sentosa
12 REPLIES
Jan van den Ende
Honored Contributor

Re: Saveset Restore

Sentosa,

>>>
but the protection is different from the original.
<<<

What exactly do you mean? Does the ownership/protection have to be differen and you want to know how to do it?
or
You restored and now it IS different, but you want it to be original?

For the moment, let me assume the second case.
If you want that, you should add
/OWNER=ORIGINAL
to your restoring BACKUP command.
( /BY_OWNER is a synonym for /OWNER )

hth

succes

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Joseph Huber_1
Honored Contributor

Re: Saveset Restore

<< protection is different ...

You restored, and the owner is different from the original
or
You want to restore to a different owner ?

Use HELP BACKUP_Command /by_owner
to see the possibilities, example:
backup saveset/save [...]/by_owner=original

Note: You must have SYSPRV or equivalent to change the owner of files !
http://www.mpp.mpg.de/~huber
Sentosa
Frequent Advisor

Re: Saveset Restore

Hi All,

Yes, i want to restore all files with new protection setting.

Original files have not protection on (World)but i want restore all files with protection (world:re).

Thanks
Sentosa
Joseph Huber_1
Honored Contributor

Re: Saveset Restore


Oh, I assumed You mean the owner of files.
No, there is no way at restore time to change the individual file protections.
Do it afterwards with a SET SECURITY/PROTECTION
command.
http://www.mpp.mpg.de/~huber
Ian Miller.
Honored Contributor

Re: Saveset Restore

Are you using the /OWNER=ORIGINAL qualifier to restore the files with the original owner?

Or is it that you wish the restored files to have a different owner and protection from the original?
____________________
Purely Personal Opinion
Sentosa
Frequent Advisor

Re: Saveset Restore

Hi Ian Miller,

I wish the restored files to have a different owner and protection from the original?

Thanks & Regards,
Sentosa
Jan van den Ende
Honored Contributor

Re: Saveset Restore

Sentosa,

If you want the restored files to have W:RE protection, you can restore WITHOUT /BY_OWNER.
In the process doing the restore, do a
$ SET PROTECTION/DEFAULT=W=RE
Now the files will be restored to the UIC of the restoring process, and world RE protection (unless... the restore is to a directory (-structure) that has a DEFAULT_PROTECTION ACL, as then that will have precedence.

Note, that this WILL set the ownership of the restored files all to the same UIC.

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Jon Pinkley
Honored Contributor

Re: Saveset Restore

Sentosa,

See

$ help backup /interchange

You will need to use that if the original files had any ACLs that you want removed.

Here is what I would do.

1. create new subdirectory for the files to be restored to. Make the owner what you want the restored files to have.

Creating a new directory for restores has the following advantages:
a. you can see what was restored easily.
b. If you need to change protections etc, after the fact, the files are segregated so you can apply change to all the files.

3. Edit/acl on the newly created directory. Add acl like (DEFAULT_PROTECTION,SYSTEM:RWED,OWNER:RWED,GROUP:,WORLD:RE)

Note: you can also apply other ACLs you want the restored files to "aquire" by adding ACEs to the diretory with "options=default"

For example, if you want the restored files to have an ACL like

(IDENTIFIER=MIS_RESTORE,ACCESS=READ+WRITE+EXECUTE+DELETE)

Then add the ACE

(IDENTIFIER=MIS_RESTORE,OPTIONS=DEFAULT,ACCESS=READ+WRITE+EXECUTE+DELETE)

to the restore directory.

4. restore files to the new directory using the following backup command:

$ backup saveset/save/select=(files) [restore_directory]/own=parent/interchange

5. Verify that the correct files were restored, and have the protection/ownership you want.

6. Once the files are restored, you can rename them to another directory, or if you don't want to affect the modification time, use backup [restore_dir] [dest_directory]/verify/delete

Using the /interhange qualifier removes all security related "defaults" and then applies security based on what the VMS would apply when creating a new file.
it depends
Hoff
Honored Contributor

Re: Saveset Restore

It's BACKUP.

It's easy to miss with the command and the command syntax.

It's cryptic.

You can over-engineer it, or you can (for instance) just RENAME the directory into the right spot (if you've missed on the directory restoration path spec), or (for this case) you can use SET FILE/OWNER and SET PROTECTION to expeditiously set the ownership and protections.

(Yes, It'd be nice to get it right, but I expect no one here can or will claim to always get the BACKUP syntax correct.)



Jan van den Ende
Honored Contributor

Re: Saveset Restore

Sentosa,

from your Forum Profile:


I have assigned points to 27 of 59 responses to my questions.


Maybe you can find some time to do some assigning?

http://forums1.itrc.hp.com/service/forums/helptips.do?#33

Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!

To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption "My Question(s)" you will find "questions or topics with unassigned points " Clicking that will give all, and only, your questions that still have unassigned postings.
If you have closed some of those streams, you must "Reopen" them to "Submit points". (After which you can "Close" again)

Do not forget to explicitly activate "Submit points", or your effort gets lost again!!

Thanks on behalf of your Forum colleagues.

PS. - nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before - please do not take offence - none is intended!

PPS. - Zero points for this.

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Dean McGorrill
Valued Contributor

Re: Saveset Restore

if you wind up accidently restoring ace's,
you can remove them, (or set your own). pick
some file you want them to be like and - eg..

$ set file/acl/like=foo.tmp myfile.xxx
Sentosa
Frequent Advisor

Re: Saveset Restore

Thanks