Skip to content

Automatic Updates

dxcufgb edited this page Oct 30, 2026 · 1 revision

Automatic updates

Off unless asked for: --auto-update / the wizard's checkbox / --enable-auto-update (see Install on Linux and Install on Windows).

A daily root (Linux) or SYSTEM (Windows) run checks the latest release of this repository and installs it when it is strictly newer and not a pre-release:

  • the archive is verified against the release's SHA256SUMS.txt,
  • the previous code is kept in /opt/foundry-world-backup.prev (C:\Program Files\FoundryWorldBackup.prev) and put back when the install fails or the service does not come back,
  • settings, env and the state are never touched,
  • results are e-mailed (see Notifications and Daily Check).

Token for updates

This repository is public, so the updater needs no token. Without one GitHub allows 60 API requests an hour per IP address, far more than a daily check uses; when that limit is used up (HTTP 403/429) the run fails with a message that says so and the next run tries again.

A token, when there is one, raises that limit. The updater uses, in this order:

  1. UPDATER_GITHUB_TOKEN given to the installer (stored root-only in updater-token),
  2. or the token the one-line installer was given (offered first when interactive),
  3. or else the service's own GITHUB_TOKEN if it is set (any valid token can read a public repository; one GitHub refuses is dropped and the check goes on without it).

The token only goes to api.github.com, never to a log or a command line, and the installers never stop to ask for one.

Update now

Update now in the dialog of the footer's Check for update on the Admin Page asks the installer's own updater to run at once (at most once every two minutes). The service may only request the run:

  • on Linux it rewrites /etc/foundry-world-backup/update-request, which a systemd path unit watches to start the root update service;
  • on Windows it starts the SYSTEM task FoundryWorldBackup-UpdateNow (which takes no arguments).

The service restarts when a newer release was installed; a running backup is interrupted and retried on its next slot.

The installers' options include --check-update and --update-now (Linux) and -Check and -UpdateNow (Windows).

Clone this wiki locally