For what it’s worth, I just ran the same PS command and got mostly the same - even the UIDs seem to match, but with some extras:
Text Compare
Produced: 15/07/2018 16:15:19
Mode: Differences
Left file: E:\temp\duplicacy_excludes\crist.txt Right file: E:\temp\duplicacy_excludes\myout.txt
1 %ProgramData%\Microsoft\Network\Downloader\* /s
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
27 C:\ProgramData\Microsoft\Network\Downloader\*
28 C:\Windows\System32\Bits.log
29 C:\Windows\System32\Bits.bak
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
36 $UserProfile$\AppData\Local\Microsoft\Office\16.0\OfficeFileCache\*.fsf
37 $UserProfile$\AppData\Local\Microsoft\Office\16.0\OfficeFileCache\*.fsd
38 $UserProfile$\Local Settings\Application Data\Office\16.0\OfficeFileCache\*.fsd
39 $UserProfile$\Local Settings\Application Data\Office\16.0\OfficeFileCache\*.fsf
40 $UserProfile$\AppData\Local\Microsoft\Office\16.0\OfficeFileCache\LocalCacheFileEditManager\*.fsf
41 $UserProfile$\AppData\Local\Microsoft\Office\16.0\OfficeFileCache\LocalCacheFileEditManager\*.fsd
42 $UserProfile$\Local Settings\Application Data\Office\16.0\OfficeFileCache\LocalCacheFileEditManager\*.fsd
43 $UserProfile$\Local Settings\Application Data\Office\16.0\OfficeFileCache\LocalCacheFileEditManager\*.fsf
44 $UserProfile$\AppData\Local\Microsoft\Outlook\*.oab
---------------------------------------------------------------------------------------------------------------
Basically, lines 36-44 must be for my Office 2016 install. I have line 1 (non-expanded, with /s) instead of your line 27 (expanded, without /s) and I don’t have lines 28/29.
I think what might be nice, for the command line version of Duplicacy, is to have some kind of helper command - say duplicacy dump --filters
- also implemented in the GUI, with a tickbox (“exclude known system files”).
It could extract the above, expand the paths and maybe even look to see if those files exist and not bother with them if they don’t (to keep the list short). If the filters file already exists, prepend the list, otherwise create one. Put a special line separator e.g. ===='s, so as not to show the entries above, in the GUI.
The GUI version could amend the list on-the-fly (so long as the tickbox is still ticked) and the command line user could simply re-run the command, both with some logic to not touch the filters file if there’s no change.