Self-hosting
Self-hosting · Keeping it running
Updating
Moving your server to a newer version of Subduction, and back again if something is wrong.
Which versions you may install
A new version becomes installable on your own server a week after it
reaches Subduction on the web. sudo subd check lists the versions you
may move to, and says what an update would do.
sudo subd check # which versions you may move to
sudo subd update # move to the newest one
To move to a particular version rather than the newest, name it with
--version. Add --dry-run to see what an update would do without
doing it. A server that cannot reach us updates from a file instead;
see Without internet access.
What an update does
- Stops Subduction.
- Backs up every database.
- Applies the new version's database changes.
- Starts the new version.
Plan for a few minutes without service.
If something is wrong afterwards
sudo subd rollback
returns to the version you were on, restoring the backup the update took.
Anything written after the update is lost when you roll back. Roll back promptly, or not at all.
Updating subd itself
subd changes less often than Subduction does. When a newer one is
available it says so, at most once a day, after a command, and
sudo subd check says so too. sudo subd self-update installs it.