Duplicati.Library.Main.Controller-UnsupportedOption

Hello,

I’m a new user of Duplicati. Set up first backup job which all went OK until the end when it threw this error:

[Warning-Duplicati.Library.Main.Controller-UnsupportedOption]: The supplied option --= is not supported and will be ignored

Backup appeared to work correctly. I restored one file to test, that threw the same error repeatedly but the restore did work.

I’ve obviously included something I shouldn’t have somewhere :smile: Can you advise where I should look to resolve this?

Thanks!

Welcome to the forum @MirM

Where were you setting it up? Was this a simple-as-possible GUI Add backup (if not, please try very simple) or are you in Settings or Advanced Options or Command Line? If GUI, you can look over the
Export As Command-line output, or post a redacted copy to see if there are any odd-looking options.

I found the issue - there was a character in one of the default settings that shouldn’t have been there (can’t remember which one off the top of my head). Removed it and now all is working perfectly.

1 Like

Hello to everyone! I am not a new user but I have the same issue. May be error in some filter? I can’t find the reason. Please help).
This problem started 5 days ago, before was normal. Also upgrading from the last beta to the last canary didn’t solve the problem.

@avmaksimov
try to follow the steps outlined by @ts678

Thank you for your answer. I tried to use the same structure but with some replacings:

"C:\Program Files\Duplicati 2\Duplicati.CommandLine.exe" backup "onedrivev2://Somepath/S2?authid=mypass" "C:\Programs\Unreal Commander\\" "C:\Scripts\\" "C:\WINDOWS\system32\config\systemprofile\AppData\Local\Duplicati\Duplicati-server.sqlite" "C:\Windows\System32\inetsrv\backup\iis\\" "D:\Releases\\" "F:\Backups\\" "G:\Bases 1C\\" "G:\Bases.info\\" "H:\Docs\\" "J:\DocsTechdepImages\\" --backup-name="Backup S2" --dbpath="C:\WINDOWS\system32\config\systemprofile\AppData\Local\Duplicati\KBHLWBJLMD.sqlite" --encryption-module=aes --compression-module=zip --dblock-size=50MB --passphrase="passphrasewithspecsymbols" --retention-policy="2M:U,12M:1M,U:1Y" --run-script-after="H:\Docs\AnotherPath\Scripts\D2_after_backup.cmd" --run-script-before="C:\Scripts\D2_Before_backup_S2.cmd" --thread-priority=low --send-mail-url=smtps://smtp.yandex.ru --send-mail-from="no-reply@somemailserver.com" --send-mail-level="Warning,Error,Fatal" --send-mail-password=somepass --send-mail-username="no-reply@somemailserver.com" --send-mail-to="mymail@somemailserver.com" --send-mail-log-level=Warning --send-mail-subject="Duplicati %OPERATIONNAME% report for %backup-name% with %PARSEDRESULT%" --send-mail-body="%RESULT%" --send-mail-result-output-format=Duplicati --send-mail-max-log-lines=0 --tempdir="E:\Duplicati 2.Temp\\" --run-script-timeout=30m --disable-module=console-password-input --exclude="[.*\.(bak|ion|log|md5|tmp|~.*)$]" --exclude="[.*\\~\$.+]" --exclude="*\.svn\\" --exclude="*\.DS_Store" --exclude="*\Thumbs.db" --exclude="[C:\\Scripts\\.*\.(csv|txt)$]" --exclude="[C:\\Programs\\Unreal Commander\\(?!Universal Viewer\\Viewer.ini|[^\\]+(ini|bar)$).+]" --exclude="[D:\\Releases\\.+\\(?:Test|Logs)\\$]" --exclude="[G:\\Bases 1C\\.+\\(?:(?!1Cv8\.1CD$|\\$)).+]" --exclude="[G:\\Bases\.info\\((?!.+\.(fdb|fd3))|.+\\).+$]" --exclude="H:\Docs\# Exchange\\" --exclude="H:\Docs\# Scanned\\" --exclude="H:\Docs\Releases\\" --exclude="H:\Docs\DataFromObjects\\" --exclude="[H:\\Docs\\SomePath\\.*\.(pdf|xml|zip)$]" --exclude="[H:\\Docs\\AnotherPath\\.*\.(bpl|com|dll|dm|msi|exe)$]" --exclude="H:\Docs\AnotherPath\Releases\\" --exclude="H:\Docs\AnotherPath\*\_Test.setup\\" --exclude="H:\Docs\AnotherPath2\Images\\"

I made it via GUI - simple and not simple. I use it for many years, but today I faced with the new problem.

@avmaksimov
I’d suggest to paste this string in a command line window and run it.
I looked at it and did not see what could be the problem but it’s huge and I can’t hope to repro it myself since there are too many differences with my test environment and your system.

I have only noticed that your retention policy seems strange - what could mean U:1Y I have no idea, but surely this is not the problem.

My retention policy is ok but I change another task on the same computer to it. All work fine. So the problem in this task only.

Also I see the same warning message in console.

If I run my backup in the console and voluntarily set an option wrong, I see it too: but the console shows me what’s wrong. Can you paste the console output ?

Nothing interesting:

Backup started at 07.06.2022 15:07:23
The supplied option ---- ----- is not supported and will be ignored
Checking remote backup ...
  Listing remote folder ...
Scanning local files ...
  0 files need to be examined (0 байт)
  356 files need to be examined (3,71 МБ) (still counting)
  658 files need to be examined (12,73 МБ) (still counting)
  919 files need to be examined (5,25 МБ) (still counting)
  2533 files need to be examined (9,21 ГБ) (still counting)
  6008 files need to be examined (12,07 ГБ) (still counting)
  8237 files need to be examined (15,79 ГБ) (still counting)
  12122 files need to be examined (18,01 ГБ) (still counting)
  16346 files need to be examined (18,10 ГБ) (still counting)
  20021 files need to be examined (18,14 ГБ) (still counting)
  23815 files need to be examined (18,29 ГБ) (still counting)
  27796 files need to be examined (18,42 ГБ) (still counting)
  30849 files need to be examined (18,48 ГБ) (still counting)
  33887 files need to be examined (18,52 ГБ) (still counting)
  36573 files need to be examined (18,55 ГБ) (still counting)
  39186 files need to be examined (12,71 ГБ) (still counting)
  41877 files need to be examined (12,76 ГБ) (still counting)
  44749 files need to be examined (12,79 ГБ) (still counting)
  47614 files need to be examined (12,84 ГБ) (still counting)
  50120 files need to be examined (12,87 ГБ) (still counting)
  52977 files need to be examined (12,92 ГБ) (still counting)
  57664 files need to be examined (20,78 ГБ) (still counting)
  63106 files need to be examined (21,08 ГБ) (still counting)
  67738 files need to be examined (21,52 ГБ) (still counting)
  73115 files need to be examined (22,05 ГБ) (still counting)
  76836 files need to be examined (19,09 ГБ) (still counting)
  79338 files need to be examined (17,16 ГБ) (still counting)
  79420 files need to be examined (14,43 ГБ) (still counting)
  78426 files need to be examined (15,88 ГБ) (still counting)
  77097 files need to be examined (18,56 ГБ) (still counting)
  75699 files need to be examined (19,66 ГБ) (still counting)
  74261 files need to be examined (20,06 ГБ) (still counting)
  72267 files need to be examined (20,07 ГБ) (still counting)
  70800 files need to be examined (20,33 ГБ) (still counting)
  69555 files need to be examined (20,82 ГБ) (still counting)
  67999 files need to be examined (20,97 ГБ) (still counting)
  67358 files need to be examined (21,16 ГБ) (still counting)
  65574 files need to be examined (21,22 ГБ) (still counting)
  64817 files need to be examined (21,35 ГБ) (still counting)
  63777 files need to be examined (21,78 ГБ) (still counting)
  63365 files need to be examined (22,05 ГБ) (still counting)
  63071 files need to be examined (22,20 ГБ) (still counting)
  62016 files need to be examined (22,48 ГБ) (still counting)
  59336 files need to be examined (15,06 ГБ) (still counting)
  56565 files need to be examined (15,14 ГБ) (still counting)
  54277 files need to be examined (14,97 ГБ) (still counting)
  54012 files need to be examined (15,33 ГБ) (still counting)
  51869 files need to be examined (15,75 ГБ) (still counting)
  49545 files need to be examined (15,78 ГБ) (still counting)
  46820 files need to be examined (15,76 ГБ) (still counting)
  45271 files need to be examined (16,74 ГБ) (still counting)
  45830 files need to be examined (15,50 ГБ) (still counting)
  46002 files need to be examined (11,41 ГБ) (still counting)
  45982 files need to be examined (10,58 ГБ) (still counting)
  44860 files need to be examined (158,33 ГБ)
  43664 files need to be examined (157,96 ГБ)
  42719 files need to be examined (157,78 ГБ)
  41429 files need to be examined (157,34 ГБ)
  40221 files need to be examined (156,91 ГБ)
  39264 files need to be examined (156,72 ГБ)
  38215 files need to be examined (156,52 ГБ)
  37710 files need to be examined (156,44 ГБ)
  36564 files need to be examined (156,27 ГБ)
  35320 files need to be examined (155,93 ГБ)
  34067 files need to be examined (155,58 ГБ)
  32672 files need to be examined (155,38 ГБ)
  31518 files need to be examined (155,20 ГБ)
  30486 files need to be examined (154,85 ГБ)
  29354 files need to be examined (154,43 ГБ)
  28159 files need to be examined (154,06 ГБ)
  26997 files need to be examined (153,69 ГБ)
  25788 files need to be examined (153,32 ГБ)
  24655 files need to be examined (152,46 ГБ)
  23523 files need to be examined (152,13 ГБ)
  21771 files need to be examined (150,76 ГБ)
  20018 files need to be examined (149,97 ГБ)
  18245 files need to be examined (149,09 ГБ)
  16009 files need to be examined (148,74 ГБ)
  14658 files need to be examined (0 байт)
  0 files need to be examined (0 байт)
  Uploading file (13,91 МБ) ...
  Uploading file (1,44 МБ) ...
  Uploading file (11,75 МБ) ...
Checking remote backup ...
  Listing remote folder ...
Verifying remote backup ...
Remote backup verification completed
  Downloading file (11,20 МБ) ...
  Downloading file (19,40 КБ) ...
  Downloading file (49,95 МБ) ...
  Duration of backup: 00:15:59
  Remote files: 11678
  Remote size: 282,53 ГБ
  Total remote quota: 1,00 ТБ
  Available remote quota: 50,49 ГБ
  Files added: 1174
  Files deleted: 88
  Files changed: 845
  Data uploaded: 27,09 МБ
  Data downloaded: 61,17 МБ
Backup completed successfully!

But interesting))). Because the strange option is not inside “---- -----”. But after “–”:
“-- -----” and that’s interesting.

I tried to run the command line after replacing every path by c:\temp (a directory that exists on my test system) and replacing also the script by c:\temp\D2_Before_backup_S2.cmd (an empty file) and I don’t see your error message. The backup fails of course but there is no error message between 'Backup started…" and ‘Checking remote backup…’

Backups are deleted after the longest timeframe ends. U for timeframe means unlimited (i.e. forever) .

Same structure as what? What does replacings mean?

What does this mean (especially given first comment)?

Is the line you posted exactly a GUI export, hand-built, or something else? Has run been GUI or CLI?

One way to get the error you say is if your --run-script-before wrote ---- ----- to usual output.
This is how one sets an option, but if you set an invalid option, you get a complaint that you did that…

For a CLI run, be careful about your %VARIABLE_NAME% getting replaced before it gets into Duplicati.
I can get your error message by putting “---- -----” at the end of the line, but I can also add an option

--send-mail-subject="%SUB%" which causes no trouble by itself, but gets your message if first do

set SUB=oops" "---- -----

I’m not expert at Command Prompt (if that’s not what this is, what is it?), but try adding echo in front.
Look over the result and see if all of your percent variables are still there, or if some of them replace.

--send-mail-subject="oops" "---- -----"

Backup started at 6/7/2022 8:26:19 PM
The supplied option ---- ----- is not supported and will be ignored
Checking remote backup ...

EDIT:

The GUI test ran this script before the backup:

echo ---- -----

and got a yellow popup

2022-06-07 19:58:13 -04 - [Warning-Duplicati.Library.Main.Controller-UnsupportedOption]: The supplied option ---- ----- is not supported and will be ignored

1 Like

Huh. I was thinking that there was only one syntax (period, retention), but in fact U:1Y and 1Y:U are both valid, but don’t mean the same thing. U:1Y means keep one version per year, for unlimited time. 1Y: U means keep all backups for one year.

1 Like

Thank you for the link to github. It helps me. Yes, To debug reason I wrote my environment in my PowerShell script. And the problem is in the fact, what PS adds a header after command “get-childitem env:” with ‘---- -----’. For example:

Name                           Value                                                                                   
----                           -----                                                                                   
ProgramFiles(x86)              C:\Program Files (x86)

I didn’t know about stdout can add the params to duplicati. I think it’s not good decision. Also the duplicati could right more informatice message. But big thanks to ts678! You save me many times!!!

1 Like

I think U for timeframe arrived later. Documentation is missing or weak. Help is always welcome.
The command line help covers U for timeframe, but it doesn’t help GUI users or manual readers.

This option also supports using the specifier “U” to indicate an
unlimited time interval.

(which is confusing because it mixes “time frame” and “interval” together, but I think it’s left-side)

This could also be mentioned in the manual (if someone would do it…) but the script has good info.
These examples are in the Duplicati folder, but I’m not sure if anybody would think to go read them.

I suppose someone who knows how to do GitHub pull requests could just drop the script in manual.
That makes parallel maintenance pain. I’m not sure how best to steer people to detailed script uses.
You have maybe already found out that script exit codes matter. That’s documented in the example.

1 Like

Yes, I know it.

If I find the time I’ll make it. But can’t promise.

no need, it’s already done.

Where did it go? Got a link? Maybe there’s some other info nearby to help explain how to do scripts.

in the doc repo, the web site is not updated in real time

1 Like