Backups, restore and upgrades
Admin 5 · 3:31
A backup of the hub, checked against its manifest, restores one deleted document or the whole hub, and an upgrade starts with a backup. The video continues from Admin 3.
What it covers
- A sealed backup archive from
weikio-backend backupon the hub host - Checking every file against its manifest with
weikio-backend restore --verify-only - Restoring the deleted variable
erp-urlalone withweikio-backend restore document, and its audit row - Restoring the whole hub on a fresh host, with hello running again in both environments
- The upgrade steps between two releases with
weikio-backend upgrade --describe, and the stack's upgrade script - Checking the release with
weikio-backend doctorand the Health page
Commands in this video
Terminal
$ weikio-backend backup --to backups/hub-2026-10-24
$ ls backups/hub-2026-10-24
$ weikio-backend restore --from backups/hub-2026-10-24 --verify-only
$ weikio delete variable sandbox/erp-url --env devtest
$ weikio get variables --env devtest
$ weikio-backend restore document --from backups/hub-2026-10-24 variable/erp-url@devtest --project sandbox
$ weikio-backend restore --from backups/hub-2026-10-24
$ weikio status sandbox/hello
$ weikio version
$ weikio-backend upgrade --describe 2026.2.0-rc.5 2026.2.0-rc.6
$ weikio-backend doctor
$ weikio get agents --behindTranscript
- 0:01This video covers the hub as its software moves on.
- 0:09The drawing starts as video three left it.
- 0:11hello runs on dev and on fi-01.
- 0:15The video shows what a saved copy holds.
- 0:18A lost piece or the whole hub comes back.
- 0:24The backup is the backend's own command,
- 0:27typed on the hub host where the backend runs.
- 0:30The archive stands in the hub host's backups folder and holds the configuration,
- 0:35the built bundles, the audit log, the agent records and the keys.
- 0:41Every file but the manifest is sealed with the master key.
- 0:45The master key and the operator seed are never in the archive.
- 0:50The check changes nothing.
- 0:52Every file is read back and matches its manifest.
- 0:58The variable erp-url of sandbox is deleted by mistake.
- 1:03The reply says the variable is deleted.
- 1:06weikio get variables reads the list back.
- 1:10The answer says sandbox has no variable in devtest.
- 1:15One document comes back alone.
- 1:17The backend opens the archive and writes this document back.
- 1:21The reply reports a new record, and the chip is back.
- 1:30It carries the archive's value, updated by system:operator.
- 1:36The audit log holds the hub's record.
- 1:39The newest row reads Restored variable in devtest.
- 1:45A fresh host starts with the master key and operator seed.
- 1:50The rest ran here off camera.
- 1:53The block prints the time and the parts restored.
- 1:57What the hub stored after the backup is gone.
- 2:00weikio status reads both deployments.
- 2:03hello runs in devtest and in production again.
- 2:12A release is the version the hub and agents run.
- 2:15Both rows read release candidate 6.
- 2:19The backend's command names an upgrade's steps.
- 2:22Between release candidate 5 and 6, no upgrade step runs.
- 2:30The stack carries its own upgrade script.
- 2:32It runs as one command on the hub host, after a backup.
- 2:37The panel compares a hub that release candidate 5 wrote against release candidate 6's images.
- 2:43Nothing was written.
- 2:51Doctor's row names release candidate 6, the release that wrote this stack.
- 2:56No agent matches, so no agent is behind.
- 3:02The Health page lists the hub's parts.
- 3:05The backend row stands Online with release candidate 6.
- 3:13The backups folder holds the checked archive.
- 3:16The lost document came back.
- 3:18One restore brought the whole hub back.
- 3:21A new release starts with a backup.