Unimus 2.5 and older support only PostgreSQL 11 and older. Starting with Unimus 2.6 added support for newer versions, PostgreSQL 11 and older are no longer supported, and PostgreSQL 12 or newer is required. This page explains how to move an existing Unimus database to a newer PostgreSQL version, whether you're coming from 11 or from a later release.
...
For general background on PostgreSQL upgrades, see the official documentation: https://www.postgresql.org/docs/current/pgupgrade.html
Choosing a method
- In-place upgrade (pg_upgrade): use this when the old and new PostgreSQL run on the same host.
- Dump and restore (pg_dump / pg_restore): use this when the new database is on a different host or is a managed instance. pg_upgrade can't move data between hosts.
...
The examples below upgrade from PostgreSQL 11 on port 5432 to PostgreSQL 18 on port 5433. Change the versions and ports to match your setup.
...
In-place upgrade (same host)
1. Install the new PostgreSQL version alongside the old one.
...
Until you remove it, you can roll back by starting the old cluster again and pointing Unimus back at it. This works only if pg_upgrade ran in the default copy mode.
...
Dump and restore (different host or managed instance
...
)
1. Stop Unimus.
sudo systemctl stop unimus
...