Upgrading¶
- Back up the database (
pg_dump), theuploads/folder and.email-key. - Get the new version: download the release and unpack it over the old one (keeping
.env,.email-key,uploads/andbackups/), orgit pulland rebuild. With Docker,docker compose pullthendocker compose up -d. - Restart the server. It applies the new
schema.sqlby itself as it starts; every statement in it is safe to run again, so it only adds what's new.
Templates are read once when the server starts, so a restart is always needed. If you set SKIP_SCHEMA=1, apply the schema yourself first: psql -U postgres -d nbs -f schema.sql.