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

Chapter 11 173
Restoring Files
RESTORE Command Options
NOTE
The CREATOR option cannot be used when the LOCAL option is used.
Changing a File's GID (GID)
If you need to change a file's group ID, or GID, you may specify the GID option. The GID
option takes an optional file group name, for example:
;GID=MANAGER
If the file group name is specified, all files being restored will have their GID changed to
the specified GID. If the file group name is not specified, the GID present on the backup
will be preserved. This overrides any change in GID that may occur due to the LOCAL or
ACCOUNT options.
Overwriting or Retaining Disk Files (KEEP, NOKEEP)
By default, RESTORE replaces disk files with the same fully qualified filename as the file
you are restoring from backup. Therefore, especially if you are restoring a large number of
files, to be sure that you do not overwrite an important file or files, use the KEEP parameter
of RESTORE.
For example, your STORE tape might contain several files, some of which have names that
are the same as files on disk. To RESTORE only those backup files with names that do not
duplicate disk file names, use the following commands:
:FILE T;DEV=TAPE
:RESTORE *T;@.@.@;KEEP
Using KEEP in the command above tells the system not to replace the files already on disk
with files that have identical names on tape. You successfully RESTORE to disk all files on
the backup that do not have the same names as files already on disk. You do not overwrite
existing files on the disk.
To explicitly require RESTORE to overwrite disk files with the same fully qualified
filenames, use the NOKEEP option in your RESTORE command. For example:
:FILE T;DEV=TAPE
:RESTORE *T;@.@.@;NOKEEP
Specifying Modification and Last Access Date (OLDDATE,
NEWDATE)
When you RESTORE a file or files, you can choose either to retain the creation, modification,
access, and state change dates and times stored with the file on the backup, or you can
choose to change the file's dates and times to the date you restored the file.
To retain the creation, modification, access, and state change dates and times in the file
label on the backup, use the OLDDATE option of RESTORE. For example:
:FILE T;DEV=TAPE
:RESTORE *T;@.@.@;OLDDATE