Compare commits

...

2 Commits

Author SHA1 Message Date
afee68fa90 Merge pull request 'fix' (#10) from fix/postgres into main
All checks were successful
Build, Test & Publish / Build (push) Successful in 25s
Build, Test & Publish / Build and Publish Container Image (push) Successful in 32s
Build, Test & Publish / Deploy to Infrastructure (push) Successful in 2m31s
Reviewed-on: #10
2025-10-15 16:14:30 +11:00
32f943ac34 fix
All checks were successful
Build, Test & Publish / Build (pull_request) Successful in 27s
Build, Test & Publish / Build and Publish Container Image (pull_request) Has been skipped
Build, Test & Publish / Deploy to Infrastructure (pull_request) Has been skipped
2025-10-15 16:14:10 +11:00

View File

@@ -11,11 +11,11 @@ If a different version of Postgres is needed, just change the version number in
## Dumping a Database
```bash
docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 pg_dump -h localhost -U myuser -d mydb > /tmp/dump.sql
docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 pg_dump -h localhost -U myuser -d mydb -f /tmp/dump.sql
```
## Restoring a Database
```bash
docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 psql -h localhost -U myuser -d mydb < /tmp/dump.sql
docker run --network host --rm -v .:/tmp -e PGPASSWORD=mysecretpassword postgres:16 psql -h localhost -U myuser -d mydb -f /tmp/dump.sql
```