describe how to backup the database (#314)

This commit is contained in:
Ulf Gebhardt 2025-08-13 21:31:14 +01:00 committed by GitHub
parent 6b57993d9f
commit 188f8ad284
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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):