Backup and Restore 2 Manual

BRCOM RESTORE Command
Backup and Restore 2 Manual522696-019
7-55
Examples
Examples
OSS Restore Examples
SQL/MX Restore Examples on page 7-60
Restore Examples With Both OSS and SQL/MX Objects on page 7-75
OSS Restore Examples
To restore any OSS directory, specify the directory on tape to be restored. The
directory and all its subordinate objects are restored to disk unless you specifically
excluded them using a WHERE expression or job options.
Restoring All OSS Objects
To restore all OSS objects that are backed up on tape, specify oss-source-
directory /. For example:
BR> RESTORE $mytape, OSS / ;
Restoring an OSS Directory and Subordinate Objects
To restore one OSS directory and all its subdirectories:
BR> RESTORE =mytape, OSS /usr ;
This example restores the user directory (/usr, /usr/usr1, /usr/usr2,
/usr/usr3) from /usr object on the tape to the same parent directory it was backed
up from. The resulting directory is:
/
usr
usr1
usr2
usr3
Restoring an OSS Object to a Different Target
To restore an OSS object to a directory other than the one the tape version originally
came from, specify a target directory. The target directory must exist before you specify
the RESTORE command.
To restore /usr as a subdirectory of the /mp1 directory:
BR> RESTORE =mytape, OSS (/usr, TARGET /mp1 );
The resulting directory is:
/mp1
usr
usr1