An overdue off-box backup (#10924)

When the newest copy of the forge that left the machine is more than 26 hours old (a nightly plus two hours), flow/alarm_backup.ts fires the backup flow alarm. It reads two small files under the data directory (the snapshot outcome and the mirror's record), never the network, and says one sentence: how old the newest off-box backup is, or that none has landed, and the last failure's cause. A forge that has never sent a copy off the box and never failed to is not alarmed.

Tests: test/alarm-backup.test.ts, test/backup-retry.test.ts (a real snapshot into a directory; the Valves screen).

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs