Restore from standard input

You can perform a restore from standard input, you must first have performed a backup to standard output.

When you perform a restore from standard input, ontape does not prompt you for options or information. If ontape cannot perform the operation with the information you provided in the restore command, ontape exits with an appropriate error. Restoring from standard input differs from restoring from tapes in the following ways:
  • No logical restore or logical log salvage occurs.

    To perform a logical restore, use the ontape -l command after the physical restore.

    To salvage logical logs, use the ontape -S command before the physical restore.

  • You are not prompted to confirm the restore. Informational messages about the archive are sent to stderr.

    If you detect a problem, you can interrupt the restore during the 10 second delay between the completion of the archive information and starting the database server.

Examples

In the following example, ontape performs a physical restore from the file level_0_archive, which contains the archive previously performed to standard output:
cat /home/level_0_archive | ontape -p
In the following example, ontape performs a restore of a level-0 archive, followed by a restore of a level-1 archive:
cat /home/level_0_archive /home/level_1_archive | ontape -r
In the following example, ontape performs a restore of sbspace1:
cat/home/level_0_archive | ontape -r -D spspace1 -t STDIO

When these restores are completed, the database server is left in single-user mode.