Upgrade
Upgrades are deliberate: a backup, a binary swap, a controlled restart.
Schema migrations run automatically on the next serve.
Procedure
-
Back up.
hiveloom backup create --output /var/backups/hiveloom-$(date +%F).tar.gzSee Backup & restore for what the archive contains and where to store it.
-
Stop the service.
sudo systemctl stop hiveloom -
Replace the binary. Either via the install script:
curl -fsSL https://bin.hiveloom.cloud/install.sh | bash -s -- --version 0.3.0…or via the in-place upgrade subcommand:
sudo hiveloom upgrade --version 0.3.0hiveloom upgrade --checktells you whether a newer release is available before committing. -
Restart and migrate.
sudo systemctl start hiveloomMigrations run on first
serveafter the swap. They are forward- compatible inside a major version. Cross-major upgrades will note any manual step in the release notes. -
Verify.
hiveloom health hiveloom statusBoth should be green. If
healthreports 503, see the troubleshooting table below or Troubleshooting.
Rollback
If the new binary regresses on something you depend on:
sudo systemctl stop hiveloom
sudo hiveloom rollback
sudo systemctl start hiveloom
hiveloom healthrollback swaps back to the previous binary saved by the most recent
upgrade. It does not undo schema migrations: if the new schema is
incompatible with the old binary, restore the pre-upgrade backup
instead:
sudo systemctl stop hiveloom
hiveloom backup restore --input /var/backups/hiveloom-pre-upgrade.tar.gz
sudo systemctl start hiveloomTime budget
Plan ~5 minutes of downtime for a routine point-release upgrade on a
single VPS. Cross-major upgrades may take longer if migrations need to
rewrite tables; back up first, watch journalctl -u hiveloom during the
restart.
See also
hiveloom upgrade— flag reference.hiveloom rollback.hiveloom backup.