Commit Graph

15 Commits

Author SHA1 Message Date
jared 79f4825e4b Send raw integer bytes_transferred to backup_runs
The datatable column is type number, so the human-formatted string
('20.96 KB') was rejected with a validation error (seen on the first
vaultwarden-org-export report). Format for display in the reporter,
not in the payload. Deployed copy in ~/.local/bin updated to match.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0133oyd1U9XxpLQU3UHMzUyy
2026-07-10 11:10:24 -04:00
jared 7ee7df68ee fix(backup): correct Synology SFTP path and remove pre-flight check
SFTP uses a virtual root where Synology shared folders appear directly
under / — /volume1/... does not exist in SFTP space. The repo lives at
/homes/jared/Backups/fedora-workstation, not /home/Backups/... .

Also removes the pre-flight reachability check (HTTP curl, previously SSH)
that has been the source of every Synology skip since May 24. Restic
handles unreachable SFTP endpoints gracefully; no gate needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-05 11:47:03 -04:00
jared 309232cb26 fix(backup): validate Synology backup path is accessible
Check that /volume1/backup is actually reachable and readable, rather
than just testing SSH connectivity. This prevents false positives where
SSH works but the backup destination is offline or unmounted.
2026-05-24 13:16:15 -04:00
jared 74f1a765e9 feat(backup-monitor): fix MailPace body field and add explicit headers
MailPace API requires 'textbody' (not 'text_body') and explicit
Accept/Content-Type headers to avoid 406. End-to-end smoke test passed:
reporter workflow queued email successfully (MailPace id: 35621228).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 13:45:28 -04:00
jared 8ff8088f84 fix(backup): use plain restic unlock with || true instead of --remove-all 2026-05-07 12:50:14 -04:00
jared 0ac58a3cb9 fix(backup-monitor): change DataTable getMany to getAll, remove unsupported filters param 2026-05-07 12:46:04 -04:00
jared 3b1bfeada1 feat(backup-monitor): fill credential/datatable IDs and reimport workflows 2026-05-07 12:30:25 -04:00
jared cb2d6f6525 feat(backup-monitor): integrate notify_backup.rb into desktop backup.sh 2026-05-07 11:25:52 -04:00
jared 476108980f feat(backup-monitor): add workflow JS files, build script, and generated workflow JSON
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-07 11:24:16 -04:00
jared 69f15d5fd2 feat(backup-monitor): add n8n workflow JSON validator 2026-05-07 11:21:24 -04:00
jared 765ffd2394 feat(backup-monitor): implement BackupNotifier and CLI entry point 2026-05-07 11:19:37 -04:00
jared 3e49704bdb feat(backup-monitor): implement WebhookClient with injected HTTP adapter and tests 2026-05-07 11:17:53 -04:00
jared c611b2e82a feat(backup-monitor): implement PayloadBuilder with tests 2026-05-07 11:16:40 -04:00
jared 3cbd04fe72 feat(backup-monitor): implement ByteFormatter with tests 2026-05-07 11:15:15 -04:00
jared 0493b8a42d feat(backup-monitor): add notify_backup script skeleton and test infrastructure 2026-05-07 11:13:57 -04:00