add docker database export/import helper scripts
This commit is contained in:
parent
52056aa1d0
commit
ea8fe9319f
2 changed files with 4 additions and 0 deletions
2
deployment/docker/db_export.sh
Normal file
2
deployment/docker/db_export.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
bash -c 'source .env && docker compose exec postgres pg_dump $C3NAV_DATABASE_NAME -U postgres'
|
2
deployment/docker/db_import.sh
Normal file
2
deployment/docker/db_import.sh
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
bash -c 'source .env && docker compose exec -T postgres psql $C3NAV_DATABASE_NAME -U postgres'
|
Loading…
Add table
Add a link
Reference in a new issue