Skip to content

Commit 45f624e

Browse files
Lower default gzip compression level (#147)
1 parent de8adb4 commit 45f624e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ services:
4949
- POSTGRES_USER=username
5050
- POSTGRES_PASSWORD=password
5151
# - POSTGRES_PASSWORD_FILE=/run/secrets/db_password <-- alternative for POSTGRES_PASSWORD (to use with docker secrets)
52-
- POSTGRES_EXTRA_OPTS=-Z6 --schema=public --blobs
52+
- POSTGRES_EXTRA_OPTS=-Z1 --schema=public --blobs
5353
- SCHEDULE=@daily
5454
- BACKUP_KEEP_DAYS=7
5555
- BACKUP_KEEP_WEEKS=4
@@ -82,7 +82,7 @@ Most variables are the same as in the [official postgres image](https://hub.dock
8282
| HEALTHCHECK_PORT | Port listening for cron-schedule health check. Defaults to `8080`. |
8383
| POSTGRES_DB | Comma or space separated list of postgres databases to backup. Required. |
8484
| POSTGRES_DB_FILE | Alternative to POSTGRES_DB, but with one database per line, for usage with docker secrets. |
85-
| POSTGRES_EXTRA_OPTS | Additional [options](https://www.postgresql.org/docs/12/app-pgdump.html#PG-DUMP-OPTIONS) for `pg_dump` (or `pg_dumpall` [options](https://www.postgresql.org/docs/12/app-pg-dumpall.html#id-1.9.4.13.6) if POSTGRES_CLUSTER is set). Defaults to `-Z6`. |
85+
| POSTGRES_EXTRA_OPTS | Additional [options](https://www.postgresql.org/docs/12/app-pgdump.html#PG-DUMP-OPTIONS) for `pg_dump` (or `pg_dumpall` [options](https://www.postgresql.org/docs/12/app-pg-dumpall.html#id-1.9.4.13.6) if POSTGRES_CLUSTER is set). Defaults to `-Z1`. |
8686
| POSTGRES_CLUSTER | Set to `TRUE` in order to use `pg_dumpall` instead. Also set POSTGRES_EXTRA_OPTS to any value or empty since the default value is not compatible with `pg_dumpall`. |
8787
| POSTGRES_HOST | Postgres connection parameter; postgres host to connect to. Required. |
8888
| POSTGRES_PASSWORD | Postgres connection parameter; postgres password to connect with. Required. |

Diff for: alpine.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ENV POSTGRES_DB="**None**" \
1818
POSTGRES_PASSWORD="**None**" \
1919
POSTGRES_PASSWORD_FILE="**None**" \
2020
POSTGRES_PASSFILE_STORE="**None**" \
21-
POSTGRES_EXTRA_OPTS="-Z6" \
21+
POSTGRES_EXTRA_OPTS="-Z1" \
2222
POSTGRES_CLUSTER="FALSE" \
2323
SCHEDULE="@daily" \
2424
BACKUP_DIR="/backups" \

Diff for: debian.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ENV POSTGRES_DB="**None**" \
3232
POSTGRES_PASSWORD="**None**" \
3333
POSTGRES_PASSWORD_FILE="**None**" \
3434
POSTGRES_PASSFILE_STORE="**None**" \
35-
POSTGRES_EXTRA_OPTS="-Z6" \
35+
POSTGRES_EXTRA_OPTS="-Z1" \
3636
POSTGRES_CLUSTER="FALSE" \
3737
SCHEDULE="@daily" \
3838
BACKUP_DIR="/backups" \

0 commit comments

Comments
 (0)