Backup and Restore 2 Manual
BRCOM BACKUP Command
Backup and Restore 2 Manual—522696-019
6-42
OSS Backup Examples
To filter the OSS files by directory or filename, use a WHERE expression and the
EXCLUDE filter combined with other filters using OR. For example:
BR> BACKUP =mytape, OSS (/usr) WHERE (EXCLUDE = (/usr/dir0)
or BR+>MODTIME > 07Apr2010 13:05);
Assume the following directory structure:
In this example, the EXCLUDE filter is the exclusion criterion and MODTIME >
07Apr2010 13:05 is the inclusion criterion. Files or directories that satisfy the
exclusion criterion are excluded but if the files inside the directories satisfy the
exclusion and the inclusion criteria, those files are backed up. The
/usr/dir0/dirfil00 file present in the /usr/dir0 directory has MODTIME >
07Apr2010 13:05. Therefore, this file is backed up even though the directory, in
which it is present, satisfies the exclusion criterion.
dirfi110 File in the /usr/dir1 directory
usr1 File in the /usr directory
usr3 File in the /usr directory
Note. While using the EXCLUDE filter:
1. Verify the result of the filter, which is the set of files that will be included in the backup.
2. Use this result set with the other filter criteria.
/ Root directory
usr Subdirectory of the root directory
dir0 Directory in the /usr directory
dirfi100 File in the /usr/dir0 directory (MODTIME > 07Apr2010
13:05)
dirfil01 File in the /usr/dir0 directory (MODTIME < 07Apr2010
13:05)
dir1 Directory in the /usr directory
dirfi110 File in the /usr/dir1 directory (MODTIME > 07Apr2010
13:05)
dirfil11 File in the /usr/dir1 directory (MODTIME < 07Apr2010
13:05)
usr1 File in the /usr directory (MODTIME > 07Apr2010 13:05)
usr2 File in the /usr directory (MODTIME < 07Apr2010 13:05)
usr3 File in the /usr directory (MODTIME > 07Apr2010 13:05)