thommyX
February 15, 2018, 7:20am
10
Or you can use “Include Regular Expression”. I have made an example a few minutes ago for an exclusion of bak and tmp files. This can also be used for an include definition. Have a look here
You can use a regular expression for things like that.
--exclude="[.*\.(bak|tmp)$]"
Does the job:
"Duplicati.CommandLine.exe" test-filters "c:\temp\test\\" --exclude="[.*\.(bak|tmp)$]"
Including source path: c:\temp\test\
Including folder: c:\temp\test\
Excluding path due to filter: c:\temp\test\hugo.bak => ([.*\.(bak|tmp)$])
Including file: c:\temp\test\hugto.baka (374 Bytes)
Including folder: c:\temp\test\x.bak\
Including file: c:\temp\test\x.bak\test (328 Bytes)
Matched 2 files (702 Bytes…
--exclude="[.*\.(bak|tmp)$]"
can also be used as
--include="[.*\.(au3|exe)$]"