Schedules and runs
The schedule
Your account gets a fixed time slot each week. On a linked machine the hourly job that the installer adds checks once an hour, at a minute chosen for that machine, whether a backup is due:
- When your slot has passed, it runs a full backup. A slot that comes less than three days after the last full backup is skipped, so a backup you ran by hand does not get repeated soon after.
- When you have queued a backup (see below), it backs up only the repositories you asked for.
- Otherwise it does nothing. The check costs one small request.
Because the check repeats every hour, a slot missed while the machine was off is caught up within an hour of it coming back. On Linux with systemd a missed check also runs at the next boot or login.
Until the machine is linked, the hourly job does nothing.
Which repositories are backed up
A run backs up only the repositories that changed since the last backup, plus any whose stored archive is missing or damaged. Unchanged repositories are skipped without contacting GitHub for their contents. Each run records why it backed up or skipped every repository.
Run a backup now
On the machine, with ENV_FILE pointing at your settings file:
github-backup-worker run # a normal run, now
github-backup-worker run --dry-run # list what would happen, change nothing
github-backup-worker run --only your-login/website # one repository (repeat --only for more)
github-backup-worker run --only your-login/website --force # back it up even if unchanged
From anywhere, you can queue a backup for your linked machines:
- In the dashboard, Back up now on the Dashboard or Backups page queues every repository. To queue one repository, open a run on the Backups page and use Back up in that repository's row. A repository GitHub no longer lists or has disabled, or one withheld from your destination or too large for it, has no Back up button, because the machine could not back it up.
- With the
trigger_backup_runtool of the MCP server. - With a write-access token and the API (
POST /api/requests).
The next hourly check on one of your linked machines picks it up; until a machine is linked (Settings > Agents), the backup waits. Queuing a backup that is already waiting adds nothing; the dashboard says it is already queued. A paid plan can queue 10 backups an hour, and the dashboard says when you can queue the next one.
Read the results
| Dashboard page | What it shows |
|---|---|
| Dashboard | Recent runs, repository health and storage totals. |
| Backups | Every run, newest first. Open one to see each repository's result and the reason for it. |
| Live Monitor | The log of a run while it runs. |
| Analytics | Trends over time, run logs and snapshots of what each run found. |
On the machine, the hourly job's logs are where The hourly job says for your system.
Repository results
| Result | Meaning | Backed up again when |
|---|---|---|
| Backed up | The archive is stored and recorded. | The repository changes, or the stored archive is lost or damaged. |
| Unchanged | Nothing changed since the last backup, and the stored archive checked out. | The repository changes. |
| Empty | The repository has no branch or tag, so there is nothing to store. | Something is pushed to it. |
| Too large | Over the 100 MiB limit of a git destination. | It changes, or you switch to a folder or bucket. |
| Failed | The last attempt failed; the error is shown. | Every run, until it succeeds. |
| Missing | GitHub no longer lists it. Its archive is kept. | It appears on GitHub again. |
| Withheld | Private, and the git destination is not confirmed private. | Every run checks again. |
Deleted repositories
When a repository disappears from GitHub, its archive stays in your storage and the repository is marked missing. Nothing is deleted unless you turn pruning on with BACKUP_PRUNE_DELETED=true. Even then, an archive is deleted only after the repository has been missing for 30 days (BACKUP_PRUNE_AFTER), across at least two runs, and GitHub answers that it no longer exists. A run never deletes more than 5 archives (BACKUP_MAX_DELETIONS), so a listing that comes back short by mistake cannot empty your storage.
When runs overlap
Only one machine of an account backs up at a time. A run that starts while another machine is backing up stops at once with "another machine is running a backup" and counts as a success.