(FIX): Fixed the database scripts.
They were not working properly.
This commit is contained in:
parent
e5a0482236
commit
ee6017f8ca
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
/flake.lock
|
||||
/go.sum
|
||||
/.env
|
||||
/*.dump
|
||||
|
||||
@ -1,5 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Ensure the environment is sourced
|
||||
source .env
|
||||
|
||||
pg_dump \
|
||||
-h "$PSQL_HOST" \
|
||||
-U "$PSQL_USERNAME" \
|
||||
|
||||
@ -1,7 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Ensure the environment is sourced
|
||||
source .env
|
||||
|
||||
pg_restore \
|
||||
-h "$PSQL_HOST" \
|
||||
-U "$PSQL_USERNAME" \
|
||||
-v -d "$PSQL_DATABASE_BACKUP" \
|
||||
-U "$PSQL_USERNAME" \
|
||||
-h "$PSQL_HOST" \
|
||||
-c -F c backup.dump
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user