Skip to main content
Version: 3.0 (next)

Upgrade Command Reference

All commands run as <binary> upgrade <command>. The binary is context-engine, or maestrohub-lite through the deprecated alias.

CommandWhat it does
upgrade checkRuns every step on copies of the stores and reports what apply would do. Changes nothing. Safe while MaestroHub runs.
upgrade applyWith MaestroHub stopped: backs up the stores it changes, runs the upgrade, verifies it, and records it.
upgrade restore --backup <dir>Puts back the backup set apply wrote, all of it or none of it. Refused once 3.0 has started on the data.
upgrade statusWith MaestroHub stopped: reports whether every store is at this version, the record of past upgrades, and every backup set with its age, size, whether it holds plain-text secrets, whether it can still be restored, and the command that deletes it. While MaestroHub runs it refuses (the stores are in use).
FlagCommandsMeaning
--config <file>allThe config file you start MaestroHub with.
--show <part>[,<part>]check, apply, statusPrint parts of the full report before the summary: needs-a-person, problems, notes, repairs, warnings, stores, first-start, ledger, backups, or all.
--jsonallPrint the report as JSON.
--report <file>allAlso write the report to a file.
--work-dir <dir>allWhere check puts its temporary copies of the stores (and status its copy of the historian's store). Removed afterwards.
--from-config <file>check, apply, statusYour 2.6 config.yaml. Only the store locations in it are read, so the upgrade can find and move the stores.
--accept-allcheck, applyAccept every item that needs a person. At a terminal, apply asks instead when you leave it out.
--accept <id>[,<id>…]check, applyAccept the proposals for the listed items that need a person.
--accept-file <file>check, applySame as --accept, one ID per line.
--backup-dir <dir>applyWhere to write the backup set, instead of <storage.dataDir>/upgrade-backups. status does not list a set written elsewhere.
--db-snapshot-taken <id>applyYour confirmation, with its ID, that you took a snapshot of the PostgreSQL databases the upgrade changes.
--copy-across-volumesapplyCopy stores kept on another volume, checked by checksum; the originals are kept, renamed.
--data-not-in-useapply, restoreYour confirmation that MaestroHub is stopped, when the tool cannot tell.
--forceapply, restoreGo ahead without asking.
--backup <dir>restoreThe backup set to put back.

Exit codes: 0 nothing to do or done, 2 work to do (check, status), 3 needs a person, 1 error.