fix backup

This commit is contained in:
Jonas Leder 2025-01-27 19:19:08 +01:00
commit 23abfa4242

View file

@ -10,10 +10,7 @@
: "${TARGET_FOLDER?TARGET_FOLDER is required}"
# Check for restore/backup argument
ACTION=$1
if [ -z "$ACTION" ]; then
$ACTION="backup"
fi
ACTION=${1:-backup} # Default to 'backup' if no argument is passed
# Define the PostgreSQL dump command based on the version
if [ "$POSTGRES_VERSION" = "17" ]; then