You can use a wildcard to represent one or more characters when you define the content for backups and filters for a subclient.
The search for subclient content is not case-sensitive.
Note
If the subclient content consists of wildcard characters and no eligible files are found for the backup, the backup operation can still successfully complete.
* (Any Number of Characters)
Example string with wildcard |
What the example string matches |
Examples of files and directories that are backed up |
---|---|---|
*.docx |
All files that have the .docx file extension. |
Are backed up:
|
/Data/*.docx |
All files that:
|
Are backed up:
|
a*.so |
All files that:
|
Are backed up:
|
/Finance/Agenda* |
All files and directories that:
|
Are backed up:
|
? (A Single Character)
Example string with wildcard |
What the example string matches |
Examples of files and directories that are backed up |
---|---|---|
access? |
All files and directories that have a name that begins with "access", followed by any 1 character. |
Are backed up:
|
access?? |
All files and directories that have a name that begins with "access", followed by any 2 characters. |
Are backed up:
|
Class?report |
All files and directories that have a name that:
|
Are backed up:
Are not backed up, because "Class" is followed by a number of characters other than 1:
|
[n] (A Range of Characters)
Numbers within square brackets are treated as single digits, and a dash between two digits indicates the complete range of numbers between those two digits.
Example string with wildcard |
What the example string matches |
Examples of files and directories that are backed up |
---|---|---|
/[a-m]* |
All files that:
|
Are backed up:
|
/[AEIOU]*.docx |
All files that:
|
Are backed up:
Are not backed up:
|
/Finance/report[1-47-9] |
All files and directories that:
|
Are backed up:
|
/Department-[A-CS] |
All files and directories that have names that begin with "Department-", followed by A-C, or S. |
Are backed up:
|
[!n] (The Negation of a Range or a Set of Characters)
Example string with wildcard |
What the example string matches |
Examples of files and directories that are backed up |
---|---|---|
/root/[!AEIOU]*.docx |
All files that:
|
Are backed up:
|
** (Any Number of Characters Across Any Number of Path Levels)
Example string with wildcard |
What the example string matches |
Examples of files and directories that are backed up |
---|---|---|
/**/move.cpp |
All files that have the name move.cpp. |
Are backed up:
|
/etc/** |
All files and directories under the /etc directory, including all sub-directories. |
Are backed up:
|
*** (Filters and Exceptions)
Use this wildcard in the following scenarios:
-
To filter the directory/library and the objects that are under it.
-
To add an exception to a filter.
Example string with wildcard |
What the example string matches |
Examples of files and directories that are backed up |
---|---|---|
/QSYS.LIB/ABC.LIB/*** |
This string filters ABC.LIB and its contents. |
|
The filter QSYS.LIB/*** and the exception /QSYS.LIB/ABC.LIB/*** |
This string backs up ABC.LIB and its contents. |