Backup and Restore 2 Manual
BRCOM RESTORE Command
Backup and Restore 2 Manual—522696-019
7-56
OSS Restore Examples
usr2
usr3
To restore objects to different target directories, specify a TARGET. If you do not
specify a target, the objects are restored to the same parent directory they were
backed up from:
BR> RESTORE =mytape, OSS((/usr/bin, TARGET /newdir),
BR+> "/x/space delimited dirname", (/home/sv/myfile, TGT
BR+> /home/sv), /usr/local/bin);
These OSS objects are restored to disk:
All the objects under the directory /usr/bin are restored to a different target
directory /newdir. This directory must already exist.
All the objects under the directory "/x/space delimited dirname" are
restored to the same parent directory it was backed up from.
The file/home/sv/myfile are restored to a different target directory
/home/sv. This directory must already exist.
The symbolic link /usr/local/bin is restored to the same parent directory it
was backed up from.
The resulting directory structure is:
/newdir
usr/bin
/home/sv
home/sv/myfile
/
usr/local/bin
Restoring OSS Objects With Filtering
To exclude OSS files from the restore operation, you can use a WHERE expression to
filter by qualifying criteria such as the modification time or owner. Filtering does not
apply to OSS directories.
To filter OSS objects by modification time, specify a WHERE expression and the
MODTIME timestamp:
BR> RESTORE =mytape, OSS (/etc/rc, /var/x) WHERE MODTIME
BR+> AFTER JAN 17 1999 ;
The WHERE expression in this example applies to both the /etc/rc and /var/x
directories. Assume this directory structure: