mirror of
https://github.com/prodrigestivill/docker-postgres-backup-local.git
synced 2026-05-31 08:37:58 +00:00
Improve compression speed #43
This commit is contained in:
@@ -72,7 +72,7 @@ for DB in ${POSTGRES_DBS}; do
|
||||
#Create dump
|
||||
if [ "${POSTGRES_CLUSTER}" = "TRUE" ]; then
|
||||
echo "Creating cluster dump of ${DB} database from ${POSTGRES_HOST}..."
|
||||
pg_dumpall -l "${DB}" ${POSTGRES_EXTRA_OPTS} | gzip -9 > "${DFILE}"
|
||||
pg_dumpall -l "${DB}" ${POSTGRES_EXTRA_OPTS} | gzip > "${DFILE}"
|
||||
else
|
||||
echo "Creating dump of ${DB} database from ${POSTGRES_HOST}..."
|
||||
pg_dump -d "${DB}" -f "${DFILE}" ${POSTGRES_EXTRA_OPTS}
|
||||
|
||||
Reference in New Issue
Block a user