You can have more than one tape file on a tape. Tape files do not have names. You can restore a single tape file on a tape that contains more than one tape file. You do this by moving the tape to the beginning of the file that is to be restored.
- Use the f option in the restore command line.
- Use the same tape compression type as a parameter to the f option that you used in the backup.
- Use the s option in the restore command line to select the appropriate backup.
- Include the relative position of the tape file that you are restoring as a parameter to the s option in the command line.
Note: Count the relative position from the current tape position. It is best to rewind the tape and start from its beginning.
From a tape that has been rewound, the following command restores the third tape file from the beginning of that tape. It then rewinds the tape.
restore rfs rst0a 3
The following list describes the elements of the command line:
- Performs a full restore.
- Specifies that a tape device is supplied in the command line.
- Selects a tape file.
- The tape device.
- Specifies to use the third tape file.