Browse Source

postgres-backup-s3: honor extra opts in pg_dumpall

The setting was being used in `psql`, but not when POSTGRES_BACKUP_ALL
is set.
pull/168/head
Matías García Isaía 3 months ago
parent
commit
f3c27906ee
No known key found for this signature in database GPG Key ID: 9E4B036DF45CE8B8
  1. 2
      postgres-backup-s3/backup.sh

2
postgres-backup-s3/backup.sh

@ -71,7 +71,7 @@ if [ "${POSTGRES_BACKUP_ALL}" == "true" ]; then
fi
echo "Creating dump of all databases from ${POSTGRES_HOST}..."
pg_dumpall -h $POSTGRES_HOST -p $POSTGRES_PORT -U $POSTGRES_USER | gzip > $SRC_FILE
pg_dumpall $POSTGRES_HOST_OPTS | gzip > $SRC_FILE
if [ "${ENCRYPTION_PASSWORD}" != "**None**" ]; then
echo "Encrypting ${SRC_FILE}"

Loading…
Cancel
Save