borg-backup-ui
borg-backup-ui copied to clipboard
Add Borg key export and import for repository recovery
Encrypted Borg repositories require both the Borg key and the passphrase for recovery. Repokey repositories store the key in the repository, but an external key export protects users if the repository key metadata is corrupted or lost.
Scope:
- Add repository-level Borg key export in the Repository management area.
- Add repository-level Borg key import with repository-ID validation before applying the import.
- Support encrypted/authenticated repository modes where Borg key export is meaningful.
- Store only non-secret audit metadata such as last export/import timestamps and repository IDs.
- Never log exported key material or passphrases.
- Add German and English UI copy and focused tests.
User impact:
- Users can create an external Borg key backup after repository creation.
- Users can restore a matching Borg key for disaster recovery while reducing the risk of importing a key for the wrong repository.