Administration Documentation

Backup, restore and upgrading the server

What to back up, where the restore and upgrade procedures are, and how to update agents.

The commands for a self-hosted server are in the reference: BACKUP-RESTORE.md and INSTALL.md → Upgrading.

What to back up

Paths are as in the community compose file.

Restore

The reference has two procedures, into the same install and onto an empty host, and the order of steps matters in both. Prepare an empty host by hand with the same release and DOMAIN, because the installer would create new keys and a new owner. Keep the same name and keys on the restored server, or its devices cannot reconnect.

Upgrade the server

  1. Read CHANGELOG.md for every release between yours and the new one.
  2. Run the dump by hand and check your copies of secrets/ and .env.
  3. Get the new release's files, run chmod -R a+rX proxy in the install directory, and create any new credential file its compose file names.
  4. Set PLATFORM_VERSION in .env to the new release.
  5. Run docker compose -f docker-compose.community.yml pull, then up -d, and check that every container is up.

There is no downgrade across a schema change, so rolling back means restoring the dump from step 2.

Update agents on devices

The server hands devices the agent release you marked latest when you imported it (--set-latest). To update one node, open it and click Update in the Agent row on Overview. For an offline node the update waits until it reconnects.

The Overview tab of an offline node, welding-bot, with Hostname, Unit, IP, MAC, HW serial, Bootloader and an Agent row showing 0.8.5 and a greyed-out Update button
The Agent row on Overview

To update many, open Status → Attention, filter by Agent update available, select the rows and click Update agent. A node offline at the time gets the update if it reconnects within a day, and a node still finishing another command is held back until it is done.