Unzip budget-app v7 into repo root

This commit is contained in:
jpmvaz
2026-10-29 20:40:02 +00:00
parent 2554e68315
commit c9fd26f1c7
94 changed files with 12098 additions and 0 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"