Skip to content

restore database

Maxime Labelle edited this page Dec 19, 2023 · 8 revisions

The Postgres database can be restored using the following commands.

First, wipe and re-create an empty database from template0. Then restore the dump.

docker compose -f /opt/simplelogin/docker-compose.yaml exec postgres \
  psql -U user
docker compose -f /opt/simplelogin/docker-compose.yaml exec postgres \
  pg_restore -U user

Clone this wiki locally