HPlogo New Features of MPE/iX: Using the Hierarchical File System: 300 MPE/iX Computer Systems > Chapter 8 Backing Up and Recovering MPE/iX

Restoring MPE/iX Files

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

You can restore an MPE/iX file set by using the RESTORE command. The file set name syntax and scanning rules for RESTORE are exactly the same as for STORE. (Refer to "How to specify MPE/iX files" earlier in this chapter.)

The CREATE option of the RESTORE command has been enhanced to provide the CREATE=PATH option. This option is used to create the required paths for a RESTORE.

NOTE: The default file set for RESTORE continues to be file set @[.@[.@ depending on whether the user has NONE, AM, or SM capabilities. If the DIRECTORY option is specified, the default file set is empty.

What Gets Restored

At RESTORE time, only files are restored by default. The directory matches are also restored if either the DIRECTORY or CREATE=PATH options is specified. If the RESTORE command specifies a file set including only MPE-named files, then only MPE-named files can be restored. If a RESTORE command specifies an HFS-named file set, then all files and directories are restored from the media. As with STORE, specifiying the wildcard character @ for one filename portion of an MPE-named file will cause it to be mapped to include both HFS and MPE named files.

Reloading Hierarchical Directories

You can regenerate the hierarchical directory structure and the UID and GID databases by restoring the directory information stored on the media.

The following rules should be followed when regenerating the hierarchical directory structure:

  • You need to specify the DIRECTORY option with the RESTORE command to regenerate the entire hierarchical directory structure. The entire directory structure is regenerated before restoring any files if the information is available on the media (that is, if the DIRECTORY option was used at STORE time). You must have either SM or OP capability to use the DIRECTORY option.

  • If you use the CREATE option with the RESTORE command, all directories matching the specified file set are restored.

  • If you use the CREATE option with the RESTORE command and the media is missing a directory that is required to restore a file, then the required directory is created with default security provisions.

  • If you do not use the CREATE option with the RESTORE command, an error message is printed for every file that cannot be restored due to a nonexistent directory component.

Feedback to webmaster