From 188f8ad284738160a3f4e5f97f230caa54864b70 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Wed, 13 Aug 2025 21:31:14 +0100 Subject: [PATCH] describe how to backup the database (#314) --- backend/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/README.md b/backend/README.md index 94039570..0c917ee9 100644 --- a/backend/README.md +++ b/backend/README.md @@ -15,6 +15,13 @@ npx directus-sync push \ --directus-password admin123 ``` +## Backup Database +Either keep a copy of the `/data/database` folder or run the following command to get an sql dump + +``` +docker exec -t utopia-map-database-1 pg_dumpall -c -U directus > dump.sql +``` + ## Access Data on local drive In order to access the postgress data mounted to the local drive at `/data/database` you need to make it accessible (assuming you are not root):