Skip to content

Backup & recovery

The master key is the root of trust for your whole vault: every entry is encrypted under it. If you lose it — a wiped Keychain, a dead machine — the encrypted records are unrecoverable. kovra key makes a portable, encrypted backup so that never becomes a catastrophe.

kovra key export asks you to bioProve (the key is the vault’s root of trust), then a recovery passphrase (twice), and writes a standard ASCII-armored age blob — encrypted under that passphrase. The plaintext key never lands in a file.

Terminal window
kovra key export --out kovra-master.age

The blob is portable: restore it with kovra key import, or decrypt it with any age implementation in a real disaster. Handy variants:

  • --clipboard — copy the (encrypted) blob to paste into a password manager.
  • --op — store it directly in 1Password via the op CLI; kovra generates the recovery passphrase and saves it alongside the blob, so there’s nothing to memorize.

Store the backup somewhere independent of the machine it came from — a password manager, not the same disk.

kovra key import reads the blob, asks for the recovery passphrase, and puts the key back into the OS keyring:

Terminal window
kovra key import kovra-master.age

Once restored, the vault unlocks exactly as before.