From 7cad5a86085311d46306884e03753b93bb98493b Mon Sep 17 00:00:00 2001 From: root Date: Wed, 26 Aug 2020 15:29:02 +0000 Subject: [PATCH] Add `temporary_directory` as a configuration option defaulting to $TMPDIR --- borgmatic/borg/environment.py | 1 + borgmatic/config/schema.yaml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/borgmatic/borg/environment.py b/borgmatic/borg/environment.py index a37c1b560..490c07abf 100644 --- a/borgmatic/borg/environment.py +++ b/borgmatic/borg/environment.py @@ -9,6 +9,7 @@ OPTION_TO_ENVIRONMENT_VARIABLE = { 'encryption_passcommand': 'BORG_PASSCOMMAND', 'encryption_passphrase': 'BORG_PASSPHRASE', 'ssh_command': 'BORG_RSH', + 'temporary_directory': 'TMPDIR', } DEFAULT_BOOL_OPTION_TO_ENVIRONMENT_VARIABLE = { diff --git a/borgmatic/config/schema.yaml b/borgmatic/config/schema.yaml index a45e86768..511e3ceb6 100644 --- a/borgmatic/config/schema.yaml +++ b/borgmatic/config/schema.yaml @@ -228,6 +228,12 @@ map: Remote network upload rate limit in kiBytes/second. Defaults to unlimited. example: 100 + temporary_directory: + type: str + desc: | + Directory where temporary files are stored. Defaults to + $TMPDIR + example: /path/to/tmpdir ssh_command: type: str desc: |