-
Notifications
You must be signed in to change notification settings - Fork 9
backup database
Maxime Labelle edited this page Dec 19, 2023
·
6 revisions
The Postgres database can be backed up with the following command:
docker compose -f /opt/simplelogin/docker-compose.yaml exec postgres \
pg_dump -U user -F c -b -v -f "/var/lib/postgresql/data/simplelogin.backup" simplelogin
-
-F c
is custom format compressed -
-b
is including blobs -
-v
is verbose -
-f
is the backup file name