How to include and exclude files in a range for NetBackup Windows clients, using wildcards
The NetBackup Systems Administration guide provides syntax rules for Exclude and Include lists. However, these rules do not apply to a Policy Files list (Backup Selection list).
The files list, which is specified in the Policy properties, is the first list NetBackup uses to determine what files should be backed up. The ? (question mark) and the * (asterisks) are the only wildcards supported by the Policy Files list. The * wildcard represents everything after a specific path and the ? wildcard represents a specific character.
- D:\Users\* would backup up every file and folder under D:\Users
The Exclude list is the second list to be processed and allows for a more detailed wildcard search. The Exclude lists supports the use of [ ] (square brackets), * and ? wildcards. The * and the ? act the same as they would with the Files list however the brackets allow specification of a range of files to exclude. For example, to exclude all directories from D:\Users\ which begin with the letters A-Z, the syntax of the exclusion would be, D:\Users\[a-zA-Z]*
Include list (Exception to Exclude list):
The Include list is the last list to be processed and allows for the same wildcard syntax as the exclude lists.
For example, to include only folders under users from A-H, the syntax of the include list would be as follows, D:\Users\[a-hA-H]*
Detailed example using all lists:
Below is a directory structure that can be used for wildcards:
To obtain a backup of all folders from A-D, from the sample list above, the lists would be done as follows:
Windows clients only, as there are limitations to the wildcard capabilities between the Policy Backup Selection list and the Exclude and Includes (Exception to Exclude list) lists. UNIX/Linux clients can use different wildcard parameters.