HP 3000 Manuals

An Overview of the Restore Process [ Performing System Operation Tasks ] MPE/iX 5.0 Documentation


Performing System Operation Tasks

An Overview of the Restore Process 

You use the RESTORE command to copy one or more files from tape to disk.
By choosing different RESTORE command options, you can, for example,
print a list of all files restored, restore files to a particular volume,
restore the system accounting structure, and restore the complete
hierarchical directory structure.

Restoring files involves the use of one or more tapes on a backup device.
The steps that you follow to complete the process are:

   *   locate and prepare the necessary tape or tapes

   *   check for duplicate file names

   *   issue a FILE command to assign a file name to the tape drive

   *   issue a RESTORE command to name the files you want to restore and
       the options to use


CAUTION Do not use the STORE or RESTORE commands to transfer any of the files originally on your system load tape from LDEV 1 to a system disk other than LDEV 1. (These files are contained in the SYS account and can be displayed by entering the SYSFILE configurator of the SYSGEN utility and using the SHOW command.) Also, do not use STORE and RESTORE to manipulate the files within a configuration group. These configuration files come as a set, and moving them between groups or systems makes the files inaccessible which will cause problems immediately or at some future time.
To prepare the tapes Search your tape library for the STORE tape(s) containing the files you want to restore. If necessary, you can use the LISTDIR parameter of the RESTORE command to list a tape's contents. It displays information from the tape directory and tape label without restoring any files. (The LISTDIR parameter does not work with transport tapes created for MPE V/E.) For example, to find out if the STORE tape contains any HFS files, enter: RESTORE *T;/ - @.@.@;LISTDIR Chapter 6 discusses how the hierarchical file system affects STORE and RESTORE procedures. Read "To name file sets in MPE and HFS syntax" and "To use wildcard characters in the file set" for more information. For a complete discussion of the hierarchical file system, read New Features of MPE/iX: Using the Hierarchical File System (32650-90351). The example below shows a sample RESTORE command and output from the LISTDIR parameter: RESTORE *T;@.SREXP.SYS;LISTDIR ________________________________________________________________________ | | | | | STORE/RESTORE VERSION A.21.01 (C) 1986 HEWLETT-PACKARD | | CO. WED, MAR 30, 1990, 10:59 AM | | | | MPEXL MEDIA DIRECTORY | | | | MEDIA NAME : STORE/RESTORE-HP/3000.MPEXL | | MEDIA VERSION : MPEXL 08.50 FIXED ASCII | | REEL NUMBER : 1 | | | | MEDIA CREATION DATE | | WED, MAR 30, 1990, 10:53 AM | | | | MEDIA CREATED WITH THE FOLLOWING OPTIONS | | | | MEDIA RECORD SIZE : 16384 | | INTERLEAVE DEPTH : 1 | | | | FILENAME GROUP ACCOUNT CREATOR REEL SET | | TDORSERR.SREXP .SYS BOB >= 1 | | TSRBUGFX.SREXP .SYS BOB >= 1 | | TSRDOC .SREXP .SYS BOB >= 1 | | TSRERR .SREXP .SYS BOB >= 1 | | TSRGLOB .SREXP .SYS BOB >= 1 | | TSRINCL1.SREXP .SYS BOB >= 1 | | TSRINCL2.SREXP .SYS BOB >= 1 | | TSRINLC3.SREXP .SYS BOB >= 1 | | TSRTAPE .SREXP .SYS BOB >= 1 | | | ________________________________________________________________________ Chapter 6 discusses how the hierarchical file system affects STORE and RESTORE procedures. Read "To name file sets in MPE and HFS syntax" and "To use wildcard characters and character sets" for more information. For a complete discussion of the hierarchical file system, read New Features of MPE/iX: Using the Hierarchical File System (32650-90351). To check for duplicate file names Before you restore a file from a STORE tape, check whether a disk file with the same name already exists. If a file with the same name resides in the account and group or in the directory you are restoring to, the disk file is overwritten by the tape file during the RESTORE process by default. To check for duplicate file names, use the LISTFILE command for each file you intend to restore. Enter: LISTFILE filename.groupname.accountname Or, to use HFS syntax, enter: LISTFILE path/filename When you specify the set of files to look for with the LISTFILE command, you can use wildcard characters. For example, to find any files in the PUB group of the RESEARCH account, enter: LISTFILE @.PUB.RESEARCH Or, for example, to list all files and directories directly below the current working directory, enter: LISTFILE ./@ If at least one file exists, the system prints the file name at your terminal. If none exist, the system prints the message NON-EXISTENT FILE (CIERR 907).


MPE/iX 5.0 Documentation