Version: Latest 2.0 beta
Description of the bug
In the graphical interface, if the user add a filter excluding/including files contains strings, duplicati will not correctly specify the command line argument. And then it will throw an error saying that the bracket is not closed.
Reproducing the bug
Go to the command line interface and edit a configuration of a backup.
In the third step add a filter (and edit as a list) excluding files contains a certain pattern.
Save the configuration and run the backup. You will see the error.
Cause of the bug
In Windows, to exclude a file we need to use
[.*foobar.*[^\\]]. If there’s only one single
\, duplicati will throw an error saying the bracket is not close. This is because
\] would be translated into the charater
] instead of the closing bracket. Therefore we have to put two slash where the first one specifies that the second slash is not an escape character but the
\ character itself.
Somehow when editing the filter as a list, instead of edit it as text, in the GUI, duplicati will not make the exclusion argument right. After you typed in the pattern you want to me matched, and then switch to “edit as text”, you would find the command line argument is wrongly specified, which has only one slash rather than two.