Let me describe some more details.
These folders and files are generated automatically in a monthly basis:
repository/
├── 2018-06/
│ ├── file1.ex1
│ ├── file2.ex2
│ ├── file3.txt <=
│ ├── file4.ex1
│ ├──...
├── 2018-07/
│ ├── file5.ex1
│ ├── file6.ex2
│ ├── file7.txt <=
│ ├── file8.ex1
│ ├──...
...
├── 2019-06/
│ ├── file9.ex1
│ ├──...
(hundreds of files are generated)
I just need to back up the txt
files.
So:
I also thought that, but:
...
INFO SNAPSHOT_FILTER Loaded 2 include/exclude pattern(s)
TRACE SNAPSHOT_PATTERN Pattern: i:(?i).*.txt*$
TRACE SNAPSHOT_PATTERN Pattern: e:.*
...
DEBUG PATTERN_EXCLUDE 2018-06/ is excluded by pattern e:.*
DEBUG PATTERN_EXCLUDE 2018-07/ is excluded by pattern e:.*
DEBUG PATTERN_EXCLUDE 2018-08/ is excluded by pattern e:.*
...
And using only the inclusion parameter:
INFO SNAPSHOT_FILTER Loaded 1 include/exclude pattern(s)
TRACE SNAPSHOT_PATTERN Pattern: i:(?i).*.txt*$
...
DEBUG PATTERN_EXCLUDE 2018-06/ is excluded
DEBUG PATTERN_EXCLUDE 2018-07/ is excluded
DEBUG PATTERN_EXCLUDE 2018-08/ is excluded
...
I can’t do this, because the folders will continue to be generated, and I would have to update the filters
file every month.
So, we can summarize this way: “how to back up a specific file type, regardless of which subfolder it is located?”