Skip to content

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):

  1. 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.
  2. virvi-recover.mjs saved locally: download the latest release and its .sha256 file from GitHub Releases (requires Node.js 18+; zero npm packages).
  3. 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.
  4. 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:

Terminal window
node virvi-recover.mjs verify virvi-export.zip
node virvi-recover.mjs summary virvi-export.zip
node virvi-recover.mjs events virvi-export.zip
node virvi-recover.mjs attendance virvi-export.zip
node virvi-recover.mjs extract virvi-export.zip ./recovered-export

verify 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:

Terminal window
git clone https://github.com/virvi-xr/virvi.git
cd virvi
cp .env.example .env
# Edit .env: set a strong JWT_SECRET, PUBLIC_URL, and POSTGRES_PASSWORD
docker compose -f docker-compose.single.yml up -d

Wait 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

  1. Sign in to your self-hosted dashboard and go to Settings → Import a Virvi export (or POST /api/me/import with Content-Type: application/zip).
  2. Upload virvi-export.zip.
  3. The server re-verifies every checksum in manifest.json and 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. If virvi.io storage 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:

  1. Read ./recovered-export/beats/<beat-id>/attendance.csv produced in Step 1.
  2. Build the set of wallets whose status is already minted (these already hold their on-chain token on Polygon — do not re-mint them).
  3. Collect new attendance on your self-hosted server (or locally) and filter out any wallet already present in the minted set before minting, ensuring zero duplicate tokens.

Recorded Drill Metrics & Honest Limitations

Metric / DimensionRecorded ResultNotes
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 DockerDominated by Docker image pull and DNS/TLS setup if starting from a fresh machine.
Zero-duplicate attendance reconciliationVerified in disaster-recovery-drill.test.tsMinted wallets from attendance.csv are excluded before issuing remaining claims.
Remaining external dependencies1) 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.