borg icon indicating copy to clipboard operation
borg copied to clipboard

Document how to use macOS KeyChain for Passphrase

Open keithy opened this issue 5 years ago • 0 comments

Just a suggestion

The following explains https://www.netmeister.org/blog/keychain-passwords.html

security add-generic-password -a ${USER} -s borgbackup-repo -w PassPhraseYouWillNeverGuess

in .bashrc (or similar)

export="BORG_PASSCOMMAND="security find-generic-password -a ${USER} -s borgbackup-repo -w"

To use this you likely need the -E option for sudo

alias borg-list='sudo -E borg list /Volumes/Repo/repo'

keithy avatar Apr 22 '20 23:04 keithy