Flatten budget-app contents into repo root

This commit is contained in:
jpmvaz
2026-10-29 20:41:01 +00:00
parent c9fd26f1c7
commit 93f2696764
95 changed files with 184 additions and 187 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# Usage (from the project folder): docker compose exec backup restore.sh /backups/budget_YYYYMMDD_HHMMSS.sql.gz
set -eu
file="${1:?give the backup file, e.g. /backups/budget_20270101_023000.sql.gz}"
echo "Restoring $file into database $PGDATABASE ..."
gunzip -c "$file" | psql -q -v ON_ERROR_STOP=1
echo "Done. Restart the api container: docker compose restart api"