-
Notifications
You must be signed in to change notification settings - Fork 0
Disaster Recovery
github-actions edited this page Jul 6, 2026
·
1 revision
| Metric | Target |
|---|---|
| RTO | 4 hours |
| RPO | 24 hours |
# 1. Provision new server + install Docker
# 2. Clone repo
git clone https://github.com/samsesh/OpenHostingNOC.git
cd OpenHostingNOC
# 3. Copy backup from remote
scp user@backup-server:/backups/latest.tar.gz backups/
# 4. Restore
./scripts/restore.sh latest
# 5. Verify
./scripts/healthcheck.sh
# 6. Update DNS → new IP# Stop service, restore from backup
docker compose stop mariadb
gunzip -c backups/<date>/mariadb.sql.gz | \
docker compose exec -T mariadb mysql -u root
# OpenSearch: restore from snapshot
curl -sk -u admin:$OS_PASSWORD \
-X POST "https://localhost:9200/_snapshot/backup/snapshot_<date>/_restore"- Isolate server
- Rotate all credentials (
.env, LDAP, tokens, SSH keys) - Restore from pre-breach backup
- Investigate via Loki logs
- Patch vulnerabilities
Monthly DR test:
for backup in backups/*.tar.gz; do
tar tzf "$backup" > /dev/null || echo "FAILED: $backup"
done| What | When |
|---|---|
| Backup verification | Weekly |
| Security updates | Monthly |
| Full DR test | Quarterly |
| Security audit | Annually |
# .env
BACKUP_S3_ENABLED=true
BACKUP_S3_BUCKET=opennoc-backups
BACKUP_S3_ENDPOINT=https://s3.amazonaws.comFull reference: docs/disaster-recovery/
OpenHostingNOC — Self-hosted Network Operations Center Questions? Open an issue or start a discussion. Support the project: donate.samsesh.net
OpenHostingNOC
Operations
Networking
Security
Advanced
CI/CD