diff --git a/pica-db-backup/docker-compose.yml b/pica-db-backup/docker-compose.yml index a9d506236442d658a91772a4f7f496e2140d8b97..0a7ff4997bb90697361de1f45cf143c60557cdbb 100644 --- a/pica-db-backup/docker-compose.yml +++ b/pica-db-backup/docker-compose.yml @@ -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: diff --git a/pica-db-backup/postgres-run.sh b/pica-db-backup/postgres-run.sh index e814a363949f52f998fad472992857fba040317b..a06d7d36e45b96a9fc79075adc8b9df60946b859 100755 --- a/pica-db-backup/postgres-run.sh +++ b/pica-db-backup/postgres-run.sh @@ -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"