The bruxpat flag changed in build 1.4.6: This version of BRU has been modified in the way that the utilization of the bruxpat setting is defined. This change is incompatible with the previous implementation. In previous versions, utilizing the -X flag instructed BRU to match files against the /etc/bruxpat file. However, because of a large number of user requests for command line exclusion capabilities, we have modified the -X flag to allow the insertion of exclusion patterns on the command line. Therefore, to access the /etc/bruxpat file, you should modify any command scripts to use -QX.The following examples explain how to use the new -X syntax:
This will backup the entire root volume excluding everything in /etc:$ bru -cvf /dev/rmt/0n -X /etc/ /
This will backup the users' home directories excluding all mp3 files:$ bru -cvf /dev/rmt/0n -X "*/*.mp3" /export/home
This will exclude the mp3 files as above, but will also add in the processing of the /etc/bruxpat file.$ bru -cvf /dev/rmt/0n -X "*/*.mp3" -QX /export/home
Note: The wildcard patterns are enclosed within quotes ("") so that expansion is performed by BRU instead of your shell (this is a shell thing, not a BRU thing). Other than quoting the wildcards on the command line, the same rules apply to the new command line exclusions that apply to the contents of the "xs" entries in the bruxpat file. Also, multiple -X "path" entries may be made on the same command line, while only one -QX may (or should) be used.