From 27419ee3143be977407d4c4a6838027e2f47ae6e Mon Sep 17 00:00:00 2001 From: Marko Oldenburg Date: Thu, 26 Sep 2024 12:01:45 +0000 Subject: [PATCH] entrypoint.sh aktualisiert --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index b0392cc..5667754 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -13,7 +13,7 @@ echo "$PGHOST:5432:$PGDATABASE:$PGUSER:$PGPASSWORD" > ~/.pgpass chmod 600 ~/.pgpass # Optional: Standardwert für den Dateinamen der Sicherung -BACKUP_FILE=${BACKUP_FILE:-"/backup/$PGDATABASE_$(date +%Y%m%d_%H%M%S).sql"} +BACKUP_FILE=${BACKUP_FILE:-"/backup/$(echo $PGDATABASE)_$(date +%Y%m%d_%H%M%S).sql"} # Führe den pg_dump-Befehl aus (pg_dump wird automatisch die .pgpass-Datei verwenden) pg_dump -h "$PGHOST" -U "$PGUSER" -d "$PGDATABASE" -F c -f "$BACKUP_FILE"