Upgrading
Keeping OtoDock current is one script, and your data is not affected.
Upgrading a Docker install
Run these two lines in your install folder, the one holding .env. Run both for each
upgrade, so you always have the new release's script:
curl -fsSLO https://raw.githubusercontent.com/OtoDock/oto-dock/main/scripts/upgrade.sh
bash upgrade.sh
The script backs up your database, installs the new release and waits until the server is
ready. If a release changes how your install runs, the script tells you first. The
release notes say the same. To see every step without changing
anything, run bash upgrade.sh --dry-run.
If the script stops before the new release starts, the old release keeps running. If it
stops after that, read docker compose logs otodock-proxy, fix the cause and run the script
again.
To upgrade by hand instead:
- Back up with
backup.sh. - Read the release notes of every release you cross.
- Download the release's two compose files over yours.
- Set
OTODOCK_VERSION=<release>in.env. On an https address, also setCOLLABORA_SSL_TERMINATION=true. - Run
docker compose pull,docker compose stop collaboraanddocker compose up -d.
Upgrading a source install
The repository checkout is the install, so updating is a git pull plus a rebuild:
# Containerised, built from source
git pull
scripts/compose.sh up -d --build
# Native
sudo systemctl stop otodock-proxy otodock-compute
git pull
scripts/dev-setup.sh --service # plus --phone if used. It starts OtoDock again
Run dev-setup.sh as the user the server runs as, with the server stopped.
Paired machines
Paired machines update themselves when they reconnect.
Restoring from a backup
To go back to the old release, run docker compose stop otodock-proxy otodock-compute, put back the files from
the folder the script made, backups/upgrade-<time>/, and run restore.sh on it. Then run
docker compose up -d. See Backup & Restore.
Next steps
- Backup & Restore →: back up before you upgrade.
- Release notes →: what changed in every release.
- Configuration →: settings and where data lives.