Increase GC frequenc to work around restic's high memory usage
https://github.com/restic/restic/issues/1988
This commit is contained in:
parent
6cc7d0b89e
commit
ebb571bf20
1 changed files with 1 additions and 0 deletions
|
@ -6,6 +6,7 @@ export B2_ACCOUNT_ID="{{ restic_b2_account_id }}"
|
||||||
export B2_ACCOUNT_KEY="{{ restic_b2_account_key }}"
|
export B2_ACCOUNT_KEY="{{ restic_b2_account_key }}"
|
||||||
export RESTIC_PASSWORD="{{ restic_key }}"
|
export RESTIC_PASSWORD="{{ restic_key }}"
|
||||||
export RESTIC_REPOSITORY="b2:{{ restic_b2_bucket }}"
|
export RESTIC_REPOSITORY="b2:{{ restic_b2_bucket }}"
|
||||||
|
export GOGC=20 # HACK: Work around for restic's high memory usage https://github.com/restic/restic/issues/1988
|
||||||
|
|
||||||
export RESTIC_LOG_DIR="$HOME/log"
|
export RESTIC_LOG_DIR="$HOME/log"
|
||||||
export RESTIC_LOG_FILE="$RESTIC_LOG_DIR/$1-$(date -Iseconds).log"
|
export RESTIC_LOG_FILE="$RESTIC_LOG_DIR/$1-$(date -Iseconds).log"
|
||||||
|
|
Loading…
Reference in a new issue