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

[pica-db-backup] 0ecd62ec: comment out for the moment

parent ad3ff94a
No related branches found
No related tags found
No related merge requests found
Pipeline #59096 passed
......@@ -12,7 +12,7 @@ services:
volumes:
- /DATA/BACKUP/:/backup/
- ./config:/config
- /etc/localtime:/etc/localtime:ro
# - /etc/localtime:/etc/localtime:ro
env_file:
- ./secrets/db.secrets
networks:
......
......@@ -9,7 +9,7 @@ BACKUP_FOLDER=${BACKUP_FOLDER:-"/backup/"}
[ -z "${POSTGRES_DB}" ] && { echo "=> POSTGRES_DB cannot be empty" && exit 1; }
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 --format=c > $BACKUP_FOLDER"'${BACKUP_NAME}'
RESTORE_CMD="pg_restore -c \$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment