BORG_DEBUG_PASSPHRASE: also show "other" env vars, docs

This commit is contained in:
Thomas Waldmann 2025-05-05 21:21:38 +02:00
parent ae4aaa96b9
commit bcb178418e
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 5 additions and 0 deletions

View file

@ -36,6 +36,8 @@ General:
Main usecase for this is to automate fully ``borg change-passphrase``.
BORG_DISPLAY_PASSPHRASE
When set, use the value to answer the "display the passphrase for verification" question when defining a new passphrase for encrypted repositories.
BORG_DEBUG_PASSPHRASE
When set to YES, display debugging information that includes passphrases used and passphrase related env vars set.
BORG_EXIT_CODES
When set to "modern", the borg process will return more specific exit codes (rc).
When set to "legacy", the borg process will return rc 2 for all errors, 1 for all warnings, 0 for success.

View file

@ -143,6 +143,9 @@ class Passphrase(str):
{fmt_var("BORG_PASSPHRASE")}
{fmt_var("BORG_PASSCOMMAND")}
{fmt_var("BORG_PASSPHRASE_FD")}
{fmt_var("BORG_OTHER_PASSPHRASE")}
{fmt_var("BORG_OTHER_PASSCOMMAND")}
{fmt_var("BORG_OTHER_PASSPHRASE_FD")}
"""
)
print(passphrase_info, file=sys.stderr)