Disaster Recovery Drill Runbook
This runbook proves you can restore your spaces, run an event, and reconcile BEAT attendance without virvi.io, using only customer-owned backups and open-source tools hosted on GitHub.
An automated version of this drill runs in the server test suite (apps/server/test/disaster-recovery-drill.test.ts).
Prerequisites
Prepare these before a major event (each takes under 5 minutes):
- A recent backup zip in storage you control: enable Settings → Automatic backups (S3, Cloudflare R2, or Backblaze B2) or click Settings → Export your data → Download (or Back up now) right before the event.
virvi-recover.mjssaved locally: download the latest release and its.sha256file from GitHub Releases (requires Node.js 18+; zero npm packages).- Standalone Decentraland fallback (optional): for Decentraland scenes, click Download backup (no Virvi) on the deploy card to keep a deployable DCL project that works with no Virvi backend at all.
- Docker + Docker Compose on any Linux, macOS, or cloud VPS you control.
Step 1: Verify and inspect your backup offline
With no internet connection or Virvi login, verify every file’s SHA-256 checksum and inspect your events and prior BEAT attendance:
node virvi-recover.mjs verify virvi-export.zipnode virvi-recover.mjs summary virvi-export.zipnode virvi-recover.mjs events virvi-export.zipnode virvi-recover.mjs attendance virvi-export.zipnode virvi-recover.mjs extract virvi-export.zip ./recovered-exportverify must print OK: all N files match manifest.json. If any file was modified or truncated, stop and fetch the previous dated backup from your bucket.
Step 2: Start an independent self-hosted Virvi server
Clone the GPL-3.0 repo directly from GitHub (hosted independently of virvi.io) and boot the single-container stack:
git clone https://github.com/virvi-xr/virvi.gitcd virvicp .env.example .env# Edit .env: set a strong JWT_SECRET, PUBLIC_URL, and POSTGRES_PASSWORDdocker compose -f docker-compose.single.yml up -dWait for GET http://localhost:3010/api/health to return {"status":"ok",...}, then create your local admin account at /signin.
Step 3: Restore your scenes and events
- Sign in to your self-hosted dashboard and go to Settings → Import a Virvi export (or
POST /api/me/importwithContent-Type: application/zip). - Upload
virvi-export.zip. - The server re-verifies every checksum in
manifest.jsonand atomically restores your scenes, presets, items, rules, preset schedules, scene code sources, and events (with fresh IDs and updated cross-references).
Step 4: Reconnect worlds and run your event
- Decentraland: reconnect each restored scene to its World or Genesis City parcel (or deploy the standalone Download backup (no Virvi) project directly with
npx @dcl/sdk-commands deploy). - Hyperfy: point your Hyperfy world at your self-hosted server’s URL and issue a fresh world key.
- Media URLs: items retain their URLs from
assets.csv. Ifvirvi.iostorage is unavailable, upload your local copies of critical posters/videos to your self-hosted Library (or your own CDN) and swap them in the scene editor.
Step 5: Capture and reconcile BEAT attendance without duplicates
When running BEAT attendance on your self-hosted server after a mid-event outage:
- Read
./recovered-export/beats/<beat-id>/attendance.csvproduced in Step 1. - Build the set of wallets whose
statusis alreadyminted(these already hold their on-chain token on Polygon — do not re-mint them). - Collect new attendance on your self-hosted server (or locally) and filter out any wallet already present in the
mintedset before minting, ensuring zero duplicate tokens.
Recorded Drill Metrics & Honest Limitations
| Metric / Dimension | Recorded Result | Notes |
|---|---|---|
| Recovery Point Objective (RPO) | ≤ 24 hours (automatic daily backup) / 0 (manual Back up now before event) | Automatic backups run every 24h; retries every 3h on failure. |
| Recovery Time Objective (RTO) | < 5 seconds (offline verify + import in automated drill); ~10–15 minutes end-to-end on a cold VPS with Docker | Dominated by Docker image pull and DNS/TLS setup if starting from a fresh machine. |
| Zero-duplicate attendance reconciliation | Verified in disaster-recovery-drill.test.ts | Minted wallets from attendance.csv are excluded before issuing remaining claims. |
| Remaining external dependencies | 1) Binary media files (only URLs are in assets.csv)2) Decentraland/Hyperfy deploy credentials & API keys (never exported) 3) Polygon RPC & gas wallet to mint new BEATs on-chain | Keep local copies of critical event media and your own deployer/minter wallet if you need full autonomy during a hosted outage. |