Show what Duplicati's warnings said, and let a job alert on them

The first twenty warning messages of each run are kept with the run and shown
on the job and in its history. A job can be set to raise a warning-level alert
when its last run finished with warnings (off by default; a muted job raises
nothing; maintenance on the machine's server silences it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-09 23:20:57 +01:00
1 parent d78aba8bf9
commit 64961b1141
14 files changed
+9241 -24

No files matched your search

+7 -1
View File
@@ -2073,9 +2073,13 @@ export interface DuplicatiBackup {
warnings: number;
errors: number;
message: string | null;
/** What the last run's warnings said (up to 20). */
warningMessages: string[];
consecutiveFailures: number;
expectedHours: number;
alert: boolean;
/** Raise an alert when the last run finished with warnings. */
alertWarnings: boolean;
}
export interface DuplicatiSource {
@@ -2106,6 +2110,8 @@ export interface DuplicatiRun {
filesChanged: number | null;
warnings: number;
errors: number;
/** What this run's warnings said (up to 20). */
warningMessages: string[];
}
export interface EndpointSuggestion {
@@ -3634,7 +3640,7 @@ export const api = {
runs: (backupId: number) => request<{ backup: { id: number; name: string }; runs: DuplicatiRun[] }>(`/api/duplicati/backups/${backupId}/runs`),
addSource: (data: { name: string; serverId: number | null }) => request<{ source: DuplicatiSource; token: string; path: string }>("/api/duplicati/sources", { method: "POST", body: JSON.stringify(data) }),
removeSource: (id: number) => request<void>(`/api/duplicati/sources/${id}`, { method: "DELETE" }),
updateBackup: (id: number, data: { expectedHours?: number; alert?: boolean }) => request<{ ok: boolean }>(`/api/duplicati/backups/${id}`, { method: "PATCH", body: JSON.stringify(data) }),
updateBackup: (id: number, data: { expectedHours?: number; alert?: boolean; alertWarnings?: boolean }) => request<{ ok: boolean }>(`/api/duplicati/backups/${id}`, { method: "PATCH", body: JSON.stringify(data) }),
forgetBackup: (id: number) => request<void>(`/api/duplicati/backups/${id}`, { method: "DELETE" }),
},
away: {