Campaign Save Files, Backups & Moving Machines
Everything you build in Elthoria — your characters, battle boards, hex maps, session journals, Lorebooks, custom tables, living world history, and private PDFs — is saved 100% locally on your own computer. Nothing lives in a vendor's cloud, and nothing disappears when you close the app or switch AI providers.
This guide explains what gets saved automatically, where it lives, how to back up or move a whole campaign safely, and what never to share.
TIP
Looking for exact database tables, lock files, revision stores, and restore invariants? Switch to the developer deep dive: Total Campaign Save State & Persistence Architecture.
What makes up a complete campaign save?
Think of your campaign as four folders working together on your machine:
| Save piece | Where it lives | What's inside | Essential to back up? |
|---|---|---|---|
| 1. Campaign Database | ~/.elthoria/data/ (elthoria.mv.db) | Every campaign, hero sheet, inventory, spell slot, buff, NPC, active combat & initiative, stealth tracker, hex & tactical board, journal entry, Lorebook, custom table, and the entire living world simulation + weekly history | Yes — core canon |
| 2. Campaign Tone & Weights | ~/.elthoria/runtime/data/worldsim-weights/ | Learned campaign-specific simulation tuning (rumor spread, intrigue weights, and GM feedback adjustments) | Yes — if you tuned world feedback |
| 3. Bookshelf, Private PDFs & GM Notes | ~/.elthoria/kompile-harness/data/ & .kompile/memory/ | Your player-safe rulebooks (data/input_documents/elthoria/), your private PDF Content Workbench sources/drafts (data/content/), and standing GM memory notes (.kompile/memory/). The search index (data/crawls/) can always be rebuilt with elthoria crawl. | Yes (skip data/crawls/ to save space if desired) |
| 4. Chat Transcripts | ~/.kompile/conversations/ | Exact back-and-forth AI chat logs used when resuming a mid-scene thread (elthoria chat --continue / --resume) | Optional (your campaign works fine in a fresh chat with /elthoria-play + /elthoria-recap) |
CAUTION
Never share your ~/.kompile folder directly! ~/.kompile/ also stores your personal AI provider sign-in tokens and API keys. When backing up or sharing a campaign with a co-GM, only copy the campaign folders under ~/.elthoria/ (and optionally a specific chat transcript JSON if needed) — never your credentials.
Does Elthoria auto-save?
Yes — continuously. Every time a character takes damage, spends a spell slot, moves on a tactical board, logs a journal entry, or advances a world week, Elthoria writes it straight to ~/.elthoria/data/elthoria.mv.db immediately (WRITE_DELAY=0), with no manual "Save" button to forget.
And because Elthoria turns off automatic background world ticks, closing the app freezes time cleanly until your next session.
How to back up a complete campaign safely
Because the campaign database is a live local file, always close Elthoria first before copying files so nothing is mid-write.
- Close
elthoria web/elthoriacleanly (and confirm no Elthoria server window is still running). - Copy your Elthoria save folders into a dated backup archive:
tar -czf ~/elthoria-backup-$(date +%Y-%m-%d).tar.gz \
-C "$HOME" \
.elthoria/data \
.elthoria/runtime/data/worldsim-weights \
.elthoria/kompile-harness/data/input_documents \
.elthoria/kompile-harness/data/content \
.elthoria/kompile-harness/.kompile/memory(Note: If you haven't tuned world weights yet, .elthoria/runtime/data/worldsim-weights may not exist yet — that's completely normal.)
Restoring a backup (or moving to a new laptop)
- Install Elthoria on the target machine and make sure Elthoria is not running.
- Extract your backup archive back into
$HOME(restoring~/.elthoria/data,~/.elthoria/kompile-harness/data/..., and.kompile/memory). - Rebuild the local bookshelf search index once (if you have rulebooks in
data/input_documents/elthoria/):bashelthoria crawl --pipeline-id standard-text - Launch
elthoria web --web-port 9181 --open-browser(orelthoria), sign in to your AI provider, and run/elthoria-play+/elthoria-recap.
Everything — characters, HP, maps, journals, Lorebooks, private PDF drafts, and every week of living-world history — returns exactly where you left off.
Keeping separate campaign vaults (or a disposable sandbox)
Want a completely separate save vault for a second group, a convention one-shot, or testing homebrew without touching your main campaign? Point ELTHORIA_HOME at a dedicated folder before launching:
# Launch a completely isolated campaign vault
ELTHORIA_HOME=~/elthoria-campaigns/greywater elthoria web --web-port 9181 --open-browser
# Or a throwaway test sandbox
ELTHORIA_HOME=/tmp/elthoria-sandbox elthoria web --web-port 9182 --open-browserEach ELTHORIA_HOME gets its own independent database (data/), workspace (kompile-harness/), and runtime weights (runtime/), while still reusing your existing AI provider sign-ins in ~/.kompile.
Full backup vs. Studio → Import/Export
If you also use the Elthoria Game web app, you'll see export buttons under Studio → Import/Export and on character/rules screens. Keep the difference clear:
| Tool | What it exports | Best used for |
|---|---|---|
| Studio → Import/Export | Homebrew rules catalogs (classes, races, feats, spells, buffs, weapons, armor, accessories, items, class features) | Sharing a homebrew rules pack between campaigns or friends |
| Character Export | One or more player character sheets (stats, abilities, inventory) | Bringing a favorite hero into a new campaign |
| Game Mechanics Export | System rules tables without characters | Cloning a custom setting's mechanics template |
Full ~/.elthoria Backup (above) | Everything: campaigns, characters, active combat, stealth, hex/tactical boards, living world + weekly history, journals, Lorebooks, custom tables, private PDFs, and learned weights | Disaster recovery, major milestones, and moving to a new computer |
Keeping GM secrets separate when sharing
- Never include
~/.elthoria/kompile-harness/data/content/if you only want to share player-safe material — that folder holds your private raw PDFs and unpublished GM drafts. - Never include
~/.kompile/auth files when sharing backups with another GM. - For sharing a player-safe recap with your party, just run
/elthoria-recapin chat instead of sending raw save files.