|
There is a keyfile for each repository - which is crucial for accessing (encryption/decryption) the backups. Do I understand correctly that, if this key file would be damaged or corrupted there would be no way to access/ restore the data of a repository?
|
Replies: 3 comments 5 replies
|
I am also quite interested in this topic, but I think having to backup a backup would be a bit absurd. Therefore I would argue that it (and similar important data) should at least be stored redundantly (i.e. using something like #194 or just multiple copies) since it adds absolutely neglible overhead, while providing redundancy for a rare, but catastrophic failure case. |
|
Thanks for raising this. You’re right: today, keys/repokey is a single point of failure. The passphrase alone cannot recover the repository if that file is lost, and we should document this clearly. I'm addressing it with:
For now, I recommend copying keys/repokey somewhere outside the repository, such as your password manager. The second in-repository copy will help with localized corruption, but an external copy remains useful if both are lost. Commit for this is coming shortly and will be in 0.20.1 |
|
I wouldn't want to overcomplicate this. If the second copy doesn't add much value in practice, better we remove it again. The real win is the key export command, which allows for a proper backup. If other parts of the repo gets damaged, the rest can still be repaired. That's not true for the key. |
Thanks for raising this. You’re right: today, keys/repokey is a single point of failure. The passphrase alone cannot recover the repository if that file is lost, and we should document this clearly.
I'm addressing it with: