Information Systems:Restoring files from tape on IBM i

From uniWIKI
Jump to navigation Jump to search

Normally, BRMS will be used for all backup and restore operations, as it maintains a catalog of save information for all saved objects and makes the process more elegant. However, restoring a file from tape through IBM i system commands is sometimes required. One of the situations where this would be required is when a restore is needed from a tape that BRMS has no info about (recall that BRMS keeps ~3 week catalog for UNIDAILY, after which save information is lost as the media is marked as expired).

The commands are outlined here: https://www.ibm.com/support/pages/examples-using-sav-and-rst-commands

Exercise caution when restoring from tape to avoid restoring existing data.

Restoring Notes mail file

The command to restore is as follows: RST DEV('/QSYS.LIB/TAPMLB01.DEVD' OBJ(('/DOMINO/MAGGIE/DATA/mail/user.nsf' *INCLUDE '/home/NORWINU/user1.nsf')) VOL('000029')

  • RST is used for IFS files. RSTOBJ and RSTLIB are used for other types of files (IBM objects and libraries).
  • TAPMLB01 refers to the tape library, 000029 refers to the tape (barcode).
  • The OBJ parameter is important - user.nsf is the file to retrieve from tape (source file), and user1.nsf is the target file. Failing to specify a target different from the source will overwrite the existing file!