mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
wal-g: Support setting the compression method.
This commit is contained in:
committed by
Tim Abbott
parent
1e5c0dc259
commit
dd5b03ea12
@@ -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-ia]: https://aws.amazon.com/s3/storage-classes/#Infrequent_access
|
||||||
[s3-rr]: https://aws.amazon.com/s3/reduced-redundancy/
|
[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`
|
#### `missing_dictionaries`
|
||||||
|
|
||||||
If set to a true value during initial database creation, uses PostgreSQL's
|
If set to a true value during initial database creation, uses PostgreSQL's
|
||||||
|
|||||||
@@ -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)
|
WALG_DELTA_MAX_STEPS=$(crudini --get /etc/zulip/zulip.conf postgresql backups_incremental 2>/dev/null)
|
||||||
export WALG_DELTA_MAX_STEPS
|
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)
|
s3_backups_bucket=$(crudini --get "$ZULIP_SECRETS_CONF" secrets s3_backups_bucket 2>/dev/null)
|
||||||
|
|
||||||
if [ "$s3_backups_bucket" != "" ] || [ -n "$WALG_S3_PREFIX" ]; then
|
if [ "$s3_backups_bucket" != "" ] || [ -n "$WALG_S3_PREFIX" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user