Skip to content

Commit 7cc9d32

Browse files
Merge pull request #7463 from ThomasWaldmann/docs-borg-key-file-master
BORG_KEY_FILE: clarify docs, fixes #7444
2 parents d25465c + d6e3d36 commit 7cc9d32

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/usage/general/environment.rst.inc

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,16 @@ Directories and files:
145145
Defaults to ``$BORG_CONFIG_DIR/keys``.
146146
This directory contains keys for encrypted repositories.
147147
BORG_KEY_FILE
148-
When set, use the given filename as repository key file.
148+
When set, use the given path as repository key file. Please note that this is only
149+
for rather special applications that externally fully manage the key files:
150+
151+
- this setting only applies to the keyfile modes (not to the repokey modes).
152+
- using a full, absolute path to the key file is recommended.
153+
- all directories in the given path must exist.
154+
- this setting forces borg to use the key file at the given location.
155+
- the key file must either exist (for most commands) or will be created (``borg rcreate``).
156+
- you need to give a different path for different repositories.
157+
- you need to point to the correct key file matching the repository the command will operate on.
149158
TMPDIR
150159
This is where temporary files are stored (might need a lot of temporary space for some
151160
operations), see tempfile_ for details.

0 commit comments

Comments
 (0)