Command test-filters doen't show included elements

On last version I can’t see what elements was added. I see only elements counts.
Example:

Including source path: D:\Documents\Somepath
Matched 2 files (30,94 КБ)

I tried add “–full-result” but without success.

Before It worked fine. What’s reason?

1 Like

Most likely the new log system is causing some problems here. I did test this feature, but it appears I missed a case somewhere.

Maybe there is a temp solution and when will it be fixed?

I cannot seem to reproduce this.

I tried something like this:

> mono Duplicati.CommandLine.exe test-filters /testuser/Desktop --include=*.txt

Including source path: /testuser/Desktop/
Including path due to filter: /testuser/Desktop/xyz/ => (*.TXT) || (*/)
Including path due to filter: /testuser/Desktop/abc/ => (*.TXT) || (*/)
Including path due to filter: /testuser/Desktop/throttle-target/ => (*.TXT) || (*/)
Excluding path due to filter: /testuser/Desktop/.DS_Store => null
Excluding path due to filter: /testuser/Desktop/.localized => null
Excluding path due to filter: /testuser/Desktop/structure.pdf => null
...

What version of Duplicati are you using?

2.0.3.4_canary_2018-04-02.

Windows Server 2016. I didn’t see this problem before.

I think I found reason. Replace --include to --exclude some file mask.

Can you post an example commandline that worked before but does not work now?

D:\Scripts>“C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe” test-filters “D:\TestPath” --include="*.xlsx"
Including source path: D:\TestPath\
Including path due to filter: D:\TestPath\~$SomeFile.xlsx => (*.XLSX) || (*\)
Including path due to filter: D:\TestPath\SomeFile.xlsx => (*.XLSX) || (*\)
Matched 2 files (30,94 КБ)

D:\Scripts>“C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe” test-filters “D:\TestPath” --exclude="~*.xlsx"
Including source path: D:\TestPath\
Matched 2 files (30,94 КБ)

1 Like

BTW, why on the second case D:\TestPath\~$SomeFile.xlsx was matched?

Ok, I figured it out.

The problem is that files that do not match any filters (include or exclude) are not reported.

The second run should be:

D:\Scripts>“C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe” test-filters “D:\TestPath” --exclude="*\~*.xlsx"

With the filter ~*.xlsx nothing is matched (it matches the filename, but not the entire path), hence nothing is displayed in the output.

I have fixed it and it will be part of the next canary.

1 Like

Great! So I can use in next canary --exclude="~*.xlsx" ?

What’s why I saw warning about this file types when backup was creating and the file was busy by Excel.

No, you need to match the full path, so: --exclude="*\~*.xlsx" is the right expression.

1 Like