STORE and TurboSTORE/iX Products Manual (B5151-90003)

172 Chapter11
Restoring Files
RESTORE Command Options
Restoring Files to Your Group and Account
Regardless of the group, account, or creator from which files were stored, you can RESTORE
files into your own group and account if you have read access to the files on the tape, or
system manager (SM), system supervisor (OP), or account manager (AM) capability.
"Read access" implies that if the files were restored to the groups and accounts from which
they came, and those groups and accounts had default access capabilities, you would be
able to read the files on disk, such as with FCOPY.
Use the LOCAL option. For example, enter:
:FILE T;DEV=TAPE
:RESTORE *T;@.@.@;LOCAL
The files are restored to your logon group and account with your logon user name as the
creator.
Restoring a File to a Different Group, Account, or Creator
Similarly, use the GROUP and ACCOUNT options to switch a file's group and account as you
RESTORE it from backup. You can use either option alone, or use both together, but you
cannot use either GROUP or ACCOUNT with LOCAL. You must have system manager (SM) or
system supervisor (OP) capability to switch a file's account. You must have system
manager (SM), system supervisor (OP), or account manager (AM) capability to switch a
file's group.
NOTE
A user without the capabilities described above can RESTORE a file to a
different account or group if the following conditions are met:
The group, account, and file level access are available to the user.
The file has no lockword, or if it does, the user knows the lockword.
The file is not privileged.
The commands displayed below RESTORE the files that belong to the PUB group of the SMITH
account on tape to the PUB group of the JONES account on disk.
:FILE T;DEV=TAPE
:RESTORE *T;@.PUB.SMITH;GROUP=PUB;ACCOUNT=JONES
The CREATOR option lets you change a file's creator as you RESTORE the file from tape. For
example, the following command restores the files in the PUB group of the SMITH account on
tape to the PUB group of the JONES account on the system disk, changing the creator to
MARTY:
:FILE T;DEV=TAPE
:RESTORE *T;@.PUB.SMITH;GROUP=PUB;ACCOUNT=JONES;CREATOR=MARTY
You must name a user that exists in the account as the new creator, or specify CREATE to
cause the user to be created in the directory. If RESTORE does not find the user name, it
does not RESTORE the file. If you use the CREATOR option without specifying a user name,
RESTORE restores the file only if the tape file's creator exists in the file system directory.