How File Archive Filters Work
The File Copy source filters for files and folders work as follows:
- File with "d2darc" and "ASBUARC" extensions are always skipped.
- Files with system and temporary attributes are always skipped.
- Windows, Program Files, and Arcserve UDP Agent (Windows) installation folders (for both File Copy and File Copy - delete source policies) are always skipped.
- The following precedence order is used for filtering (with the highest precedence listed first):
- Exclude directory filters
- Exclude file filters
- Include directory filters
- Include file filters
- Include Criteria
- Exclude system and application files (Exchange and SQL only) present in any location. (This filter is only applicable for File Copy - Delete Source policies).
- A file is copied only if the Include Folder or the Include File filter matches, it does not need to satisfy both filter requirements.
- The File filter works only on the file name, and does not depend on the path.
- For example, if you have the three files "Test.txt", "Hellotest.txt", and "TestHello.txt" these filters produce the following results:
- Test*.txt filter matches only Test.txt and TestHello.txt
- Test* filter matches Test.txt and TestHello.txt
- Test filter does not match anything
- *.txt filter matches all of them
- *test filter does not match anything
- A Folder filter works on the policy source level.
- For example, if you have the following directory structure:
- C:
->Z99
-> ->A00
-> -> ->B01
-> -> ->C01
-> -> ->D01 - If you configure your File Copy Source as "C:\Z99\A00" and you apply an Include Folder b* filter, then all files under c:\Z99\A00\B01 are copied.
- If you configure your File Copy Source as "C:\Z99 and you apply an Include Folder b* filter, then this filter does not match any folder and no files are copied.
- In this example, the Source does includes the"Z99" grandparent folder, but not the "A00" parent folder. As a result, there are no "b" folders directly subordinate to "Z99" and no files are copied.
- However if you specify a *b* filter, it now matches any subordinate folder that starts with "b" and all files within these "b" folders are then copied.
- If you configure your File Copy Source as "C:\Z99" and you apply an Include Folder *01 filter, then all subordinate folders containing "01" (B01, C01, and D01) are copied.
- In this example, the asterisk is located before the "01". As a result, all files in any subordinate folders (regardless of the root level) that contains "01" are copied.
In this example, the Source includes the parent folder and the asterisk is located after the "b". As a result all files in any folder subordinate to "A00" that starts with "b" are copied.
In this example, the asterisk is now located before the "b". As a result, all files in any folder subordinate to "C:\Z99" (regardless of the root level) that starts with "b" are copied.
Note: Folder filters are always relative to the source folder path specified in the policy.