Running script before with arguments on duplicati-2.1.0.3-beta.x86_64

Oh my goodness! You are right. Once I didn’t use the “all” keyword, but rather just the “MyRunningVM”, I can run the command without any quotes! So this was rather a case of my missing that the error 1 was actually as a result of the script, and not Duplicati’s interpretation. I think I was thrown by the error message only showing the script in the error and not including the arguments. (I thought it was failing because it wasn’t passing the arguments to the script, as opposed to how it was actually failing because it was reading them, and that when it ran it in fact generated the error).

On the documentation in the run-script-example.sh I think the fact that arg1 had a trailing space and was in quotes, while arg2 didn’t have quotes, was what was confusing me. I do understand that a path with a space must be quoted. And from the description text in the GUI though ALL arguments must be quoted, but wasn’t sure if they had to be individually quoted (i.e. 3 independently quoted items) or all arguments surrounded by one quote (i.e. arguments passed as one long string).

I think in the end, what I’m hoping can be achieved is just that the documentation supporting the arguments in the example script can be less convoluted. (refer trailing space – who does that??)

I was also thrown by comments on older threads that said that arguments were not supported yet, and only in canary. That article was less than 6 months ago.
https://forum.duplicati.com/t/run-script-with-parameters-error-in-log/19198
… so that just added to my confusion.

Once again thanks for the help. I think we can close this one now.