Backups & Disaster Recovery
Backups & Disaster Recovery
14.9.1 What to back up
Critical: lose
WALLET_ENCRYPTION_KEYand every embedded wallet’s server share is unrecoverable. Treat it like a root CA key.
14.9.2 Backup commands
Postgres (logical):
Redis (RDB snapshot):
14.9.3 Restore drill
Run quarterly:
14.9.4 Recovery objectives
14.9.5 Smart-contract recovery
On-chain state is immutable and replicated by the chain network — there is nothing to back up. To “recover”:
- Resync the new API instance against the deployed contracts (re-read events from the
DIDRegistry,RevocationRegistry, etc.) —pkg/blockchain/sync.goshould expose a backfill command. 2. Verify the off-chain DB matches the on-chain truth — periodic reconciliation job.