A small service that lives next to a self-hosted Foundry VTT server and backs every world up to its own private GitHub repository on a schedule. Each run is a git commit of the world folder (the files in Data/worlds/<world id>: world.json, the LevelDB packs, scenes, uploaded assets…) pushed to GitHub, so the full history of every world is kept and any state can be restored with git. Node.js only, no npm dependencies; the backups are made with the git command.
A password-protected Admin Page lists the worlds with whether each one is backed up, when it was last backed up and the size of its folder, and holds every setting. When a backup fails, a warning e-mail goes to the configured addresses, and one more says when the world backs up again.
Foundry data ─── Data/worlds/<id> ──▶ git add / commit (git dir in the service's state folder) ──▶ git push ──▶ github.com/<you>/foundry-world-<id> (private)
▲
schedule (daily 04:00 by default) ─ or "Back up now" on the admin page ───┘ failures ──▶ e-mail
| Runs on | Linux (systemd service, e.g. a Raspberry Pi) or Windows (scheduled task) |
| Needs | git, a GitHub token; on Linux Node.js 18+ is used when installed system-wide, otherwise the installer downloads Node.js 22; the Windows installer brings its own |
| Admin page | https://<host>:8484/ |
| Updates | optional, from this repository's releases (Automatic Updates) |
| Latest release | Releases |
Where things are
| Where | What |
|---|---|
https://<host>:8484/ |
the administration page (/ → 302 /_admin/, plain http:// → 301 https://) |
/_admin/api/... |
its JSON API (session cookie + CSRF token; 401 without a login) |
/var/lib/foundry-world-backup/repos/<id> |
the git directory of a world (never inside the world folder: Foundry serves that folder) |
/var/lib/foundry-world-backup/status.json |
last attempt / success / error, commit and folder size per world |
github.com/<token owner>/<prefix><id> |
the world's repository, created (private) on the first backup if it is missing |
The administration page is described on Admin Page.
Start here
- Create the GitHub Token: a narrow fine-grained token.
- Install: on Linux or on Windows.
- Open the Admin Page and check the Worlds table. A new install backs every world up once right away.
Day to day
More
- Installable World Backups: install a backed-up world in Foundry from a manifest URL.
- Trusting the Certificate: so your browser saves the admin password.
- Admin Page on a Public Address: a real certificate or a reverse proxy.
- Admin API: the JSON API for scripts.
- Configuration Reference:
config.jsonand the environment variables.
Help
See Troubleshooting, then open an issue.
This page mirrors the World Backup to Git wiki on GitHub.