# Upgrades

> Versions, database migrations and which desktop apps work with which server.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://app.docs.sypnia.com/self-hosting/upgrades/

For agents: Versions follow semver; read the changelog first. Upgrade: back up Postgres, pull the new image, start with SYPNIA_APP_AUTO_MIGRATE=true or run `sypnia-app migrate` first; migrations only add within a major version; downgrade = restore the backup. Desktop app and @sypnia/app work with servers one minor version older or newer; the interface warns otherwise. Web interface ships inside the server image.

App follows semantic versions. Read the [changelog](https://app.docs.sypnia.com/reference/changelog) before upgrading.

### Back upBack up the Postgres database.
### Pull`docker compose pull app`
### MigrateStart with `SYPNIA_APP_AUTO_MIGRATE=true`, or run `sypnia-app migrate` first.
### Start`docker compose up -d app`

- Within a major version, migrations only add; they never remove columns you use.
- To go back, restore the backup and start the previous image.
- The web interface is inside the server image, so it upgrades with it.
- The desktop app and `@sypnia/app` work with servers one minor version older or newer, and warn you otherwise.
