Browse Source

Merge pull request #23 from spalladino/postgres-backup-s3/add-extra-opts

Add POSTGRES_EXTRA_OPTS env variable to postgres-backup-s3
pull/24/head
Johannes Schickling 9 years ago
committed by GitHub
parent
commit
1531bda686
  1. 1
      postgres-backup-s3/Dockerfile
  2. 2
      postgres-backup-s3/backup.sh

1
postgres-backup-s3/Dockerfile

@ -9,6 +9,7 @@ ENV POSTGRES_HOST **None**
ENV POSTGRES_PORT 5432
ENV POSTGRES_USER **None**
ENV POSTGRES_PASSWORD **None**
ENV POSTGRES_EXTRA_OPTS ''
ENV S3_ACCESS_KEY_ID **None**
ENV S3_SECRET_ACCESS_KEY **None**
ENV S3_BUCKET **None**

2
postgres-backup-s3/backup.sh

@ -49,7 +49,7 @@ export AWS_SECRET_ACCESS_KEY=$S3_SECRET_ACCESS_KEY
export AWS_DEFAULT_REGION=$S3_REGION
export PGPASSWORD=$POSTGRES_PASSWORD
POSTGRES_HOST_OPTS="-h $POSTGRES_HOST -p $POSTGRES_PORT -U $POSTGRES_USER"
POSTGRES_HOST_OPTS="-h $POSTGRES_HOST -p $POSTGRES_PORT -U $POSTGRES_USER $POSTGRES_EXTRA_OPTS"
echo "Creating dump of ${POSTGRES_DATABASE} database from ${POSTGRES_HOST}..."

Loading…
Cancel
Save