Pulse Intelligence stores operational CTI, API key hashes, users, sessions, audit logs, and analyst-authored reports in PostgreSQL. Treat backups as sensitive intelligence artifacts.
pg_dump and pg_restore installed on the host.DATABASE_URL set to the PostgreSQL database you want to back up or restore.npm run db:backup
By default, backups are written to backups/pulse-intelligence-<timestamp>.dump.
Custom path:
npm run db:backup -- --output C:\secure-backups\pulse-2026-08-11.dump
The backup uses PostgreSQL custom format with ownership and ACL metadata removed, which makes restoring across hosts easier.
Restores are destructive because they use pg_restore --clean --if-exists.
npm run db:restore -- --input backups/pulse-intelligence-2026-08-11.dump --yes
Before restoring:
DATABASE_URL points at the intended target.npm run db:generate if the restore is part of a deployment rebuild.