KB Logo

TOLIS Group Knowledge Base

Browse KB by category:
Go to KB #:
Email   Bookmark

Important changes made to the 'bruxpat' file declaration in version and higher.

Views: 15859
Votes: 0
Posted: 27 Dec, 2007

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.

Others in this Category
document Setting up an Autoloader to work with BRU - Method 1
document Disable/Enable Hardware Compression When Using BRU
document How do you configure the scheduler with XBRU?
document Setting up an Autoloader to work with BRU - Method 2
document How to use BRU with Autoloaders
» More Articles

Powered by KnowledgebasePublisher
Page Load Time: 0.029528 seconds / 29.528 milliseconds.
Page File Size: 21189 bytes.