If a File System backup set includes a number of folders, but requires to backup some specific folder within a specific rule, we can add an RegEx record to point a specific source folder.
Following folder examples:
E:\folder101\folder201\*
E:\folder101\folder202\*
E:\folder101\folder203\*
E:\folder102\folder201\*
E:\folder102\folder202\*
E:\folder102\folder203\*
E:\folder103\folder201\*
E:\folder103\folder204\{any folder name in this location}\folder555\*
- To include content of the following folders: E:\folder101\folder201\* and E:\folder101\folder203\* . But exclude all the rest folders, which can be on E:$ drive. In this case, we have to create a RegEx with the following customization records:
E:\folder101\*
REGEX: (Inclusion, Case sensitive, Match files and directories) E: - \\folder101\\(folder201|folder203)\\.*
To include content of the folder "..\folder555\*", we can use the following customization records:
E:\folder103\folder204\*
REGEX: (Inclusion, Case sensitive, Match files and directories) E: - \\folder103\\folder204\\.*\\folder555\\.*
If we need to include a content of the following folders E:\folder101\folder201\* , E:\folder101\folder203\* and E:\folder103\folder204\{any folder name in this location}\folder555\* , we have to use two RegEx entries for the selection customisation:
E:\folder101\*
E:\folder103\folder204\*
REGEX: (Inclusion, Case sensitive, Match files and directories) E: - \\folder101\\(folder201|folder203)\\.*
REGEX: (Inclusion, Case sensitive, Match files and directories) E: - \\folder103\\folder204\\.*\\folder555\\.*
Note: please be careful with characters in front of REGEX key. The char "~" means "exclusion" from the rules behind REGEX key.
For instance:
~REGEX: (Inclusion, Case sensitive, Match files and directories) E: - \\folder101\\(folder201|folder203)\\.* means exclude these rules from the backup set selection.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article