Backup and Restore 2 Manual
BRCOM BACKUP Command
Backup and Restore 2 Manual—522696-019
6-40
OSS Backup Examples
The /usr directory is backed up even if it does not meet the filter criteria. Filtering
does not apply to directories. The /usr/usr1 and /usr/usr3 files have not been
active since January 7th 2004 and are not backed up. These objects are backed
up:
To filter OSS files by the creation time, use a WHERE expression and the
CREATIONTIME timestamp. For example:
BR> BACKUP =mytape, OSS (/etc/rc, /var/x) WHERE (CREATIONTIME
BR+> BEFORE JAN 17 2004 and OWNER software.sitaramv);
Assume this directory structure:
The /etc and /var directory are both backed up. The x file is not backed up.
In this example, files are filtered by the number of bytes and the owner:
BR> BACKUP =mytape, OSS(/usr/bin, /home/sv/myfile,
BR+>/usr/local/bin) WHERE (EOF > 200000 AND OWNER =
BR+> software.sitaramv)
To filter OSS files by directory or filename, use a WHERE expression and the
EXCLUDE filter. For example:
BR> BACKUP =mytape, OSS (/usr) WHERE EXCLUDE =(/usr/temp);
Assume the following directory structure:
usr Subdirectory of the root directory
usr2 File in the /usr directory (last modified on 02 APR 2004)
etc Directory
rc File in the /etc directory (created on 07 JAN 2004)
var Directory
x File in the /x directory (created on 12 DEC 2004)
etc Directory
rc File in the /etc directory (created on 07 JAN 2004)
var Directory
/ Root directory
usr Subdirectory of the root directory
usr1 File in the /usr directory (last modified on 07 JAN 2003)
usr2 File in the /usr directory (last modified on 02 APR 2004)
usr3 File in the /usr directory (last modified on 07 JAN 2003)
temp Directory in the /usr directory