Repository navigation
How a Backup Works
dxcufgb edited this page Oct 30, 2026
·
1 revision
- The world folder is checked: is it readable, and, through Foundry's
/api/status, is the world active. -
git add -Ain the world folder with the git directory inSTATE_DIR/repos/<id>(GIT_DIRandGIT_WORK_TREE; nothing is written into the world folder), then a commit when anything changed (Backup of <title> (<id>) <time>, authorFoundry world backup). Nothing changed = no commit, still a success. Withgithub.releaseson, the commit also holds.github/workflows/release-world.yml, put into git's index only (marked skip-worktree sogit add -Akeeps it); the world folder never gets the file. Off removes it again. - The repository is looked up on GitHub: created (private) when missing and
createReposis on. A repository the token cannot push to, or that is outside the token's account and missing, is an error. -
git pushofHEADto the repository'smainbranch. The token reaches git only through a credential helper in the environment of that one git process: it is never on a command line, in a URL, in a log line, in a commit or instatus.json. -
status.jsonis updated and, on a failure, an e-mail is sent; the first success after a failure sends an "OK again" e-mail. See Notifications and Daily Check.
One world is backed up at a time. "Back up now" queues a world that is not already running or queued.
A world whose backup is running when the service restarts is retried on its next slot (its lastScheduled is only set when the run started, so a missed slot shows up as due).
The schedule is set on the admin page's Schedule page or per world; see Configuration Reference for the options. A slot missed while the machine was off runs as soon as the service is back, so a freshly installed service backs every world up once right away.
Dxcufgb's Workshop: every Foundry VTT project, video and changelog in one place · Support on Ko-fi · MIT License
Setting up
Using it
- How a Backup Works
- Restoring a World
- Installable World Backups
- Notifications and Daily Check
- Automatic Updates
Reference