Skip to content

Disaster Recovery

Priority Order

  1. VPS2 (Critical) — Databases, mail, APIs. Restore databases first.
  2. VPS3 (High) — Public-facing sites + monitoring.
  3. VPS1 (Low) — Legacy services.

Full Server Recovery

  1. Provision new Ubuntu 24.04 VPS
  2. Create deploy user, install base packages
  3. Restore configs from backup (nginx, SSL, etc.)
  4. Install and restore MariaDB from dump
  5. Deploy application services
  6. Update DNS records to new IP
  7. Verify with Uptime Kuma or manual checks

Database Recovery

mysql -u root -p < all_dbs_backup.sql
mysql -e "SHOW DATABASES"

Tip

Keep an offline copy of credentials in a secure password manager.