(FIX): Fixed the database scripts.

They were not working properly.
This commit is contained in:
Hayden Hargreaves 2025-10-09 17:52:04 -07:00
parent e5a0482236
commit ee6017f8ca
3 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
/flake.lock
/go.sum
/.env
/*.dump

View File

@ -1,5 +1,8 @@
#!/usr/bin/env bash
# Ensure the environment is sourced
source .env
pg_dump \
-h "$PSQL_HOST" \
-U "$PSQL_USERNAME" \

View File

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