Updating
This page covers what to keep and what to do after updating the hub.
What to keep
Your setup lives in a few places, none of which an update should overwrite:
| What | Where |
|---|---|
| Settings | config.json in the hub folder. |
| Users, tasks, webhooks, feeds, watcher snapshots, invites, plugin keys, server id | The database file named by db_path in config.json. |
| Stream settings and groups | streams.json in the hub folder, if you use streams. |
| Hub log files | The logs folder in the hub folder. |
| Your plugins, filters, and webhook scripts | The folders named by plugins_path, filters_path and webhooks_path. |
Because the database holds the server id, keeping it means your phones keep working without any change: every MQTT topic and every phone's saved hub stays the same.
Steps
- Stop the hub. This also stops every daemon it supervises.
- Copy a backup of the database file and
config.jsonsomewhere safe. - Replace the program files in the hub folder, leaving the files above in place.
- From the hub folder, install the packages again in case the list changed:
pip install -r requirements.txt. - Start the hub again with
python hub.pyfrom the hub folder.
After it starts, check the Dashboard: the broker should show as connected and your tasks as running.
Restarting versus updating
Some changes only need a restart, not an update:
- Edits to
config.json. - Adding, removing, or changing webhook scripts in
webhooks_path. The hub loads them once at startup.
Use Restart hub in the web UI's sidebar for these, or stop and start the hub yourself. Changes to tasks, webhooks, feeds, and users that you make in the web UI take effect immediately and need no restart.