[Borgbackup] Providing passphrase on the command line (Terminal)

azarus azarus at posteo.net
Mon Jan 29 00:12:58 EST 2018



On 29 January 2018 03:51:06 CET, Howard Mann <howardm at xmission.com> wrote:
>Hi,
>
>I’m a new (non-techie) Borg user. I’ve successfully created a
>repository— with passphrase-aasociated encryption. I use Mac OS.
>
>For each individual command I now issue in Terminal, such as “borg
>list…” I have to enter the requested passphrase.
>
>Is there a way I can avoid (or minimize) this requirement.
>
>I know about the use of “export
>BORG_PASSPHRASE=‘superawesomepassphrase’” in a script, which I’ve
>created and used successfully.

That what you've just mentioned can be used inside a script or outside a script and is called an 'environment variable'.

Borg regards that environment variable either way, so I'd just export it before listing the repos.

Greetings, 
--
azarus


More information about the Borgbackup mailing list