FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
ScalingOperations & Runbooks
Runbook: Restore Database Backups
DocsscalingOperations & RunbooksRunbook: Restore Database Backups
GitHub Live Sync

Runbook: Restore Database Backups

Live technical documentation fetched from GitHub repository omghante/metapilot/docs/operations/runbooks/restore-backups.md

Runbook: Restoring PostgreSQL Database Backups

Procedure for restoring database backups.

Procedure Steps

1. Drop Existing Active Connections & Database

sql
DROP DATABASE metapilot;
CREATE DATABASE metapilot OWNER metapilot;

2. Restore Dump

bash
pg_restore -h localhost -U metapilot -d metapilot -v /backups/metapilot_20260724.dump

3. Verify Database Integrity

bash
cd services/api
python manage.py check