Skip to content
Snippets Groups Projects
Commit eb54ac21 authored by Andres Maldonado's avatar Andres Maldonado
Browse files

Update $BACKUP_CMD

parent 144f5c13
Branches
No related tags found
No related merge requests found
Pipeline #58118 failed
......@@ -10,7 +10,7 @@ BACKUP_FOLDER=${BACKUP_FOLDER:-"/backup/"}
ping -c 1 -W 1 "${POSTGRES_HOST}" || { echo -e "\n=========== ${POSTGRES_HOST} not available, skipping backup... ===========\n"; exit 1; }
BACKUP_CMD="pg_dump -w -c > $BACKUP_FOLDER"'${BACKUP_NAME}'
BACKUP_CMD="pg_dump -w -c --format=c > $BACKUP_FOLDER"'${BACKUP_NAME}'
# Make sure backup folder exists
mkdir -p "${BACKUP_FOLDER}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment