community icon indicating copy to clipboard operation
community copied to clipboard

BORG_PASSPHRASE not working as expected

Open barnybla opened this issue 11 months ago • 5 comments

I have set environment variable for BORG_PASSPHRASE, in this way:

export BORG_PASSPHRASE='top_secret_passphrase'

I got this issue:

passphrase supplied in BORG_PASSPHRASE, by BORG_PASSCOMMAND or via BORG_PASSPHRASE_FD is incorrect

With the command: "env" I saw:

BORG_PASSPHRASE=top_secret_passphrase

I tried the export in different ways with: 'top_secret_passphrase', "top_secret_passphrase" and top_secret_passphrase. All ways shows the same issue like above.

If I try the borg list command with the right passphrase, then it works fine.

I have:

borg --version                           borg 1.2.4
borgmatic --version                  borgmatic 1.9.5
python3 --version                     Python 3.11.2

What could be the problem?

Regards Bernd

barnybla avatar Feb 25 '25 13:02 barnybla