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

+3
View File
@@ -1699,6 +1699,8 @@ export const duplicatiBackups = sqliteTable(
warnings: integer("warnings").notNull().default(0),
errors: integer("errors").notNull().default(0),
message: text("message"), // the first error, or warning
warningMessages: text("warning_messages"), // JSON string[]: what the last run's warnings said (up to 20); null: none
alertWarnings: integer("alert_warnings", { mode: "boolean" }).notNull().default(false), // raise an alert when the last run finished with warnings
lastSuccessAt: text("last_success_at"), // ISO; a backup with warnings still counts
consecutiveFailures: integer("consecutive_failures").notNull().default(0),
expectedHours: integer("expected_hours").notNull().default(48),
@@ -1725,6 +1727,7 @@ export const duplicatiRuns = sqliteTable(
filesChanged: integer("files_changed"),
warnings: integer("warnings").notNull().default(0),
errors: integer("errors").notNull().default(0),
warningMessages: text("warning_messages"), // JSON string[]: what this run's warnings said (up to 20); null: none
},
(t) => [index("duplicati_runs_idx").on(t.backupId, t.at)],
);