add docker database export/import helper scripts

This commit is contained in:
dfjera 2024-08-09 17:17:52 +02:00
parent 52056aa1d0
commit ea8fe9319f
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
bash -c 'source .env && docker compose exec postgres pg_dump $C3NAV_DATABASE_NAME -U postgres'

View file

@ -0,0 +1,2 @@
#!/usr/bin/env bash
bash -c 'source .env && docker compose exec -T postgres psql $C3NAV_DATABASE_NAME -U postgres'