Read Duplicati's form-encoded reports

Duplicati posts its message as a form body by default (message=<URL-encoded
text>). Unwrap it (any field name, other fields beside it), take the job and
operation from the 'Duplicati Backup report for <job>' line, read JSON under
that line, and read the Warnings and Errors lists of the text form.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-09 23:44:16 +01:00
1 parent e517de35af
commit 4d653f5a80
3 files changed
+134 -16

No files matched your search

+1
View File
@@ -152,6 +152,7 @@ That works on every Duplicati version, needs no login handshake and leaves nothi
```
`send-http-level=All` matters: by default Duplicati only reports problems, and a backup that quietly stops reporting could not be told from one that works. The plain-text format is also read, but JSON carries the name of the job and the figures reliably.
**How Duplicati posts it does not matter:** by default it sends a **form-encoded** body (`message=<the text, URL-encoded>`, the message beginning *"Duplicati Backup report for <job>"*), which is unwrapped — the field may have another name (`send-http-message-parameter-name`) and have others beside it; the text or JSON posted as the body as it is (`send-http-json-urls`, a message set by hand) is read too. The job's name and the operation are taken from that first line when the result does not say them. In the text form the warnings and errors are read from their `Warnings: [ … ]` and `Errors: [ … ]` lists.
For one job only, add the same options to that job's advanced options instead.
- **What is read** from each report: the operation (only *Backup* counts — a compact, repair or test is set aside), the result (`Success`, `Warning`, `Error`, `Fatal`), the job's name, when it began and ended, the duration, the size of what was examined, the files added, changed and deleted, the number of
warnings and errors, the first message and **what the warnings said** (JSON format only; up to twenty, each cut at 500 characters, kept with the run). A job is learned from its first report, by name; the same name on another machine is another job.