I have made a regex to exclude Windows Excel and Word tmp files (~$…)
[.*\\[\x7e][\x24].*(xls|doc).*]
This works fine in a job. So I tried to use it in Defaults options so that this exclude is used for every job.
The command-line is
"C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe"
backup
"googledrive://duplicati?authid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
"\\server\share\folder\folder\\"
"\\server\share\folder\folder2\\"
"\\server\share\folder\folder3\\file"
--exclude="[.*\\[\x7e][\x24].*(xls|doc).*]"
--backup-name="xxxxxx"
--dbpath="xxxxxx\xxxxxxx.sqlite"
--encryption-module="aes"
--compression-module="zip"
--dblock-size="10MB"
--passphrase="xxxxxxxx"
--send-http-url="https://www.duplicati-monitoring.com/log/xxxx/xxxxx/xxxx"
--allow-missing-source="true"
--disable-module="console-password-input"
--exclude="*\dataConfig\\"
--exclude="*\dataEvents\\"
--exclude="**\est\content\*\\"
As you can see the exclude is added in the 7th line but I get this error
The supplied option --exclude is not supported and will be ignored,
Failed to process path: \\server\share\folder\~$MyFile.xlsx
=> The process cannot access the file '\\server\share\folder\~$MyFile.xlsx'
because it is being used by another process.
If I use the same exclude in the job it works and ~$MyFile.xlsx is excluded.
What is the problem?