Skip to content

Commit

Permalink
Use gzip to compress dumped SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
kyori19 committed Jun 3, 2022
1 parent 91ad312 commit 26f2e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup.sh
Expand Up @@ -32,7 +32,7 @@ EOF

mkdir -p "${ROOT_DIR}"

PGPASSWORD="${PSQL_PASSWORD}" pg_dumpall -h "${PSQL_HOST}" -U postgres > "${ROOT_DIR}/dumpall.sql"
PGPASSWORD="${PSQL_PASSWORD}" pg_dumpall -h "${PSQL_HOST}" -U postgres | gzip > "${ROOT_DIR}/dumpall.sql.gz"

redis-cli -h "${REDIS_HOST}" -a "${REDIS_PASSWORD}" --rdb "${ROOT_DIR}/dump.rdb"

Expand Down

0 comments on commit 26f2e0f

Please sign in to comment.