In a general sense, all the Duplicati options are exposed as environment variables prefixed with “DUPLICATI__” and, due to some some env. variables not allowing dahes, all dashes (-) replaced with underscores (_).
So if you’re running a DOS batch file you could get to your --throttle-upload
setting by using %DUPLICATI__throttle_upload%
.
There are also some special non-option vairables that are probably what you’re intersted in:
- DUPLICATI__EVENTNAME = when script was triggered such as “BEFORE” or “AFTER”
- DUPLICATI__OPERATIONNAME = operation, such as “Backup”, “Cleanup”, “Restore”, etc.
- DUPLICATI__RESULTFILE = path to file in which result data is stored
- DUPLICATI__REMOTEURL = “URL” target backend
- DUPLICATI__LOCALPATH = path to folders being backed up or restored
- DUPLICATI__PARSED_RESULT = run result such as “Unknown”, “Success”, “Warning”, “Error”, or “Fatal”
So in your case (and assuming a DOS batch file) I’m guessing your script should start with something along the lines of if *%DUPLCATI__PARSED_RESULT%* NEQ *Success* goto :EOF
(or something like that).