The live (Tradier) stack has no backup service. Only the paper stack backs up its
own DB, so the 80-trade test's whole record lived only on the TrueNAS pool.
- deploy/backup_live_db.py, run by Task Scheduler "Momentum\LiveDbBackup" at 20:40 ET
nightly: pg_dump -Fc (PostgreSQL 18.6 client) of the live DB to
C:\Users\Admin\momentum-backups. It is verified with pg_restore --list (the events
and config_overrides data must be present), keeps the newest 7, and writes
status.json. A broken dump is deleted rather than kept.
- research/daily_report.py alerts when the last backup failed or is more than 36 h
old. When there are alerts it sends them to Telegram, using the stack's own sender
and the credentials in .env. --no-telegram suppresses that for dry runs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B3PXXn2tHBzdv6rYtGPz86