Link your machine
Linking connects a worker to your account. A linked worker reads its schedule and your backup requests from the dashboard and reports every run there. Without a link the worker backs up nothing: github-backup-worker run stops and asks you to link the machine first.
Linking and every backup need a paid plan. An account can link up to 10 machines.
Link
-
In the dashboard, open Settings > Agents. The Link a machine card shows the exact command for your account.
-
On the machine, run that command:
github-backup-worker link --control-plane <the address from the Agents page>Use the address exactly as the page shows it, not a LAN IP or another name for the same server: the worker backs up only with run passes that name the address it is linked to.
The worker prints a code such as
BCDF-GHJKand opens the dashboard's Link a machine page with the code filled in. On a machine without a browser, add--no-browser, then open Link a machine in the dashboard on any device and type the code. -
The page shows the machine's name, host name and worker version. Check that they are yours and that the code matches, then select Approve.
-
The worker receives its own access token, stores it in the system keychain and finishes within a few seconds.
-
Nothing else: the hourly job the installer added starts following your account's schedule at its next check.
The code is valid for 10 minutes. Only approve a code you started yourself: an approved machine can report runs for your account and take the backups you queue.
Options
| Option | Effect |
|---|---|
--name NAME | The machine's name in the dashboard. The default is the host name. |
--no-browser | Do not open a browser; type the code in the dashboard yourself. |
--store file | Keep the token in a file readable only by your user instead of the keychain. Use it on a Linux machine that backs up while you are logged out. |
Check the link
github-backup-worker auth status
It prints Runs: linked to <address> as <your login>. The machine also appears under Settings > Agents.
Unlink or retire a machine
- To stop a machine reporting, revoke it under Settings > Agents. Its token stops working at once, and its next run stops with a message to link again.
- To remove the token from the machine itself, run
github-backup-worker unlink. The worker then backs up nothing and the hourly job does nothing; to remove the job too, see Remove the worker. Unlinking on the machine does not revoke the token: revoke it in the dashboard as well when you retire or lose the machine.
Several machines
You can link more than one machine to the same account, for example a desktop and a NAS. They share one schedule and take turns: while one runs a backup, the others see that and skip that run. Each machine keeps its own record of what it stored, so the first run on each machine archives every repository again, even into the same storage.
If linking fails
| Message | What to do |
|---|---|
the link code expired before it was approved or the link request was denied | Run the link command again and approve the new code within 10 minutes. |
| The dashboard says the account has no paid plan | Buy a plan, then run the link command again. |
the account has no room for another agent | The account already has 10 machines. Revoke one under Settings > Agents. |
uses plain http, which is allowed only for localhost | Use the https:// address shown on the Agents page. |