HPlogo Performing System Operation Tasks: 900 Series HP 3000 Computer Systems > Chapter 7 Copying Files from Tape

Selecting a RESTORE Error Recovery Method

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

As RESTORE restores files from tape, it displays the number of files restored and not restored, and the names of files not restored, if any. The RESTORE message also explains why each file was not restored. Such errors do not necessarily abort the RESTORE process. When RESTORE encounters an error, it either automatically recovers or terminates, depending upon the nature of the error and the error recovery method you choose.

The following errors always cause RESTORE to abort:

  • A command syntax error.

  • A disk input or output error (in the system).

  • An error opening the tape file or an indirect file. (Refer to "Using Indirect Files," in the previous chapter.)

  • An incorrectly formatted STORE tape.

  • No continuation reel; you did not find a continuation reel for a multireel tape set.

  • A device reference error; either the specification for the device parameter is illegal, or the device is not available.

The ONERROR parameter of the RESTORE command lets you choose a recovery procedure when it encounters a device read error. Your options are ONERROR=QUIT (which is the default) or ONERROR=SKIP. You must include the ONERROR parameter only if you do not wish to use the default.

To stop RESTORE upon an error

To request that RESTORE terminates upon encountering a tape error, enter:

   RESTORE *T;@.PUB.SMITH;ONERROR=QUIT

To continue RESTORE regardless of errors

To request that error-causing files are skipped during RESTORE and that the RESTORE continues use the SKIP option of ONERROR. Enter:

   RESTORE *T;@.PUB.SMITH;ONERROR=SKIP
Feedback to webmaster