Interpreting File Selection Rules
Specify the criteria that LiveVault uses to select files to include or exclude from the policy.
The following can be included in the expression you enter:
-
Any characters (letters, numbers, symbols, punctuation marks and spaces) except for the following symbols: " > < |
-
The wildcard character "*" to represent a directory.
-
The wildcard character"*" to match zero or more characters in a file name.
For example,
*.tmp
matches all files that have the.tmp
extension.
The following examples illustrate how LiveVault interprets file selection rules to qualify files for backup or restore. Each example shows the complete rule list for a single backup configuration.
Example 1
When this rule list is applied, all files in the top-level directory will be backed up.
OS | Selection | Rule Type | File | Directory | Subdirectories |
---|---|---|---|---|---|
Windows | Include | All in directory | C:\
|
No | |
Linux | Include | All in directory | /
|
No |
Example 2
When the following rule list is applied, all files from the top-level directory and in all subdirectories of the top-level directory will be backed up.
OS | Selection | Rule Type | File | Directory | Subdirectories |
---|---|---|---|---|---|
Windows | Include | All in directory | C:\
|
Yes | |
Linux | Include | All in directory | /
|
Yes |
Example 3
When the following rule list is applied, all files from the top-level directory and in all subdirectories will be backed up except for the temporary directory, files in the temporary directory, and files in subdirectories of the temporary directory.
OS | Selection | Rule Type | File | Directory | Subdirectories | Rules Behavior |
---|---|---|---|---|---|---|
Windows | Include | All in directory | C: \ |
Yes | Include all files from the C:\ top-level directory and from all subdirectories on C: |
|
Windows | Exclude | All in directory | C:\Temp
|
Yes | Exclude the Temp directory, all files in the Temp directory, and all files in subdirectories of the Temp directory. |
|
Linux | Include | All in directory | / | Yes | Include all files from the / top-level directory and from all subdirectories. | |
Linux | Include | All in directory | /tmp
|
Yes | Exclude the tmp directory, all files in the tmp directory, and all files in subdirectories of the tmp directory. |
Example 4
When the following rule list is applied, all files from the top-level directory and in all subdirectories, as well
as all files with the DAT
(sh
for Linux) extension in the temporary directory, will be backed up.
However, all files without the DAT
(sh
for Linux) extension in the temporary directory, and all files in subdirectories of the
temporary directory will
not be backed up.
OS | Selection | Rule Type | File | Directory | Subdirectories | Rules Behavior |
---|---|---|---|---|---|---|
Windows | Include | All in directory | C:\
|
Yes | Include all files from the C:\ top-level directory and from all subdirectories on C: |
|
Windows | Exclude | All in directory | C:\TEMP
|
Yes | Exclude the Temp directory, all files in the Temp directory, and all files in subdirectories of the Temp directory. |
|
Windows | Include | Ending with | .dat
|
C:\TEMP
|
No | Include all files with the DAT extension in the Temp directory. |
Linux | Include | All in directory | /
|
Yes | Include all files from the / top-level directory and from all subdirectories. | |
Linux | Exclude | All in directory | /tmp
|
Yes | Exclude the tmp directory, all files in the tmp directory, and all files in subdirectories of the
tmp directory. |
|
Linux | Include | Ending with | .sh
|
/tmp
|
No | Include all files with the sh extension in the
tmp directory. |
Example 5
Compare the result of the preceding rule list with this next example. When the following rule list is applied, all files from the top-level directory and in all subdirectories are backed up. However, all files in the temporary directory and subdirectories of the temporary directory are excluded. The last exclude rule overrides the previous include rule.
OS | Selection | Rule Type | File | Directory | Subdirectories | Rules Behavior |
---|---|---|---|---|---|---|
Windows | Include | All in directory | C:\
|
Yes | Include all files from the C:\ top-level directory and from all subdirectories on C: |
|
Windows | Include | Ending with | .dat
|
C:\TEMP
|
No | Include all files with the DAT extension in the TEMP directory. |
Windows | Exclude | All in directory | C:\TEMP
|
Yes | Exclude the TEMP directory, all files in the TEMP directory, and all files in subdirectories of the TEMP directory. |
|
Linux | Include | All in directory | / | Yes | Include all files from the / top-level directory and from all subdirectories. | |
Linux | Include | Ending with | .sh
|
/tmp
|
No | Include all files with the sh extension in the
tmp directory. |
Linux | Exclude | All in directory | /tmp
|
Yes | Exclude the tmp directory, all files in the tmp directory, and all files in subdirectories of the tmp directory. |