borg-key-add(1)

πŸ“¦ version 2.0.0b25, in ubuntu stonking

πŸ’– borg-key-add(1) πŸ’–

okay bestie, welcome to borg-key-add β€” the little command that lets you add a brand new borg key (protected by its own independent passphrase) to your repository. yes, more than one key. yes, it's iconic. let's get into it πŸŽ€


✨ NAME ✨

borg-key-add β€” add a new borg key (protected by an independent passphrase) to the repository.


🌸 SYNOPSIS 🌸

borg [common options] key add [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: one repository can be protected by more than one borg key. Every single borg key holds the same secret key material, but each one is wrapped in its own independent passphrase (and yeah, they can totally be different passphrases). Any one of them can unlock the same repository. it's giving shared custody but make it cryptography πŸ”

Why would you want this? Say you wanna give each individual user their own passphrase, while keeping a separate admin/recovery passphrase just for you. Slay. That's exactly the use case.

This command adds an additional borg key. It does not re-encrypt any repository data, and it does not change the existing borg keys. Your new passphrase gets read from BORG_NEW_PASSPHRASE, or if that's not around, it's queried interactively. πŸ‘‘

Every borg key has a label. The very first borg key β€” the one created at repository creation time β€” has the reserved label admin, and it is protected from deletion. Keys you add later need a unique, user-defined --label. no duplicates, bestie, we don't do that here.


πŸ’… OPTIONS πŸ’…

See borg-common(1) for common options of Borg commands.

🌈 options 🌈

  • --label LABEL β€” label for the new borg key (must be unique)

πŸ‘€ SEE ALSO πŸ‘€

borg-common(1)


🫢 AUTHOR 🫢

The Borg Collective


and that's the whole page, bestie πŸ’– this one came to you from the borg backup tool, dated 2026-10-07 β€” go forth and add keys, you absolute main character πŸ‘‘βœ¨

πŸ“¦ where this page comes from