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/169/head
Matías García Isaía
3 months ago
No known key found for this signature in database
GPG Key ID: 9E4B036DF45CE8B8
1 changed files with
1 additions and
1 deletions
-
postgres-backup-s3/backup.sh
|
@ -71,7 +71,7 @@ if [ "${POSTGRES_BACKUP_ALL}" == "true" ]; then |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
echo "Creating dump of all databases from ${POSTGRES_HOST}..." |
|
|
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 |
|
|
if [ "${ENCRYPTION_PASSWORD}" != "**None**" ]; then |
|
|
echo "Encrypting ${SRC_FILE}" |
|
|
echo "Encrypting ${SRC_FILE}" |
|
|