Always take a backup of the Postgres database before you upgrade.
Back up the database
Dump the database with pg_dump. This works for both Docker and binary setups, since Docker exposes Postgres on localhost:5432. Replace the user and database name if you changed them in your config.
pg_dump -h localhost -U libredesk libredesk > libredesk_backup.sql
Upgrade a binary install
1. Stop the running libredesk process.
2. Download the latest release and extract the binary over the old one.
3. Upgrade the database. Upgrades are idempotent, so running this more than once does nothing.
./libredesk --upgrade
4. Start Libredesk again.
./libredesk
Upgrade a Docker install
1. Stop the application.
docker compose down app
2. Pull the latest image.
docker compose pull
3. Start the application.
docker compose up app -d