wal-g: Support setting the compression method.

This commit is contained in:
Alex Vandiver 2024-08-16 12:36:56 -04:00 committed by Tim Abbott
parent 1e5c0dc259
commit dd5b03ea12
2 changed files with 10 additions and 0 deletions

View File

@ -296,6 +296,13 @@ value. Also supported is "[S3 Reduced Redundancy][s3-rr]", by setting
[s3-ia]: https://aws.amazon.com/s3/storage-classes/#Infrequent_access
[s3-rr]: https://aws.amazon.com/s3/reduced-redundancy/
#### `backups_compression_method`
What compression method to use when storing backups; defaults to `lz4`, which is
fast but does not compress particularly well. Other options are `lzma`, `zstd`,
and `brotl`; `lzma` provides the best (and slowest) compression, while `zstd`
and `brotli` are middling compromises.
#### `missing_dictionaries`
If set to a true value during initial database creation, uses PostgreSQL's

View File

@ -8,6 +8,9 @@ export PGHOST=/var/run/postgresql/
WALG_DELTA_MAX_STEPS=$(crudini --get /etc/zulip/zulip.conf postgresql backups_incremental 2>/dev/null)
export WALG_DELTA_MAX_STEPS
WALG_COMPRESSION_METHOD=$(crudini --get /etc/zulip/zulip.conf postgresql backups_compression_method 2>/dev/null)
export WALG_COMPRESSION_METHOD
s3_backups_bucket=$(crudini --get "$ZULIP_SECRETS_CONF" secrets s3_backups_bucket 2>/dev/null)
if [ "$s3_backups_bucket" != "" ] || [ -n "$WALG_S3_PREFIX" ]; then