borg-key-add(1)
π 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 π
π«Ά 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
- ubuntu stonking: borgbackup2 2.0.0b25-4 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms