Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitrot mitigation #1866

Closed
zatricky opened this issue Nov 20, 2016 · 3 comments
Closed

Bitrot mitigation #1866

zatricky opened this issue Nov 20, 2016 · 3 comments

Comments

@zatricky
Copy link

zatricky commented Nov 20, 2016

I'm considering using borg (capitalisation?) for remote backup, hence this question.

Does borg have a built-in feature to mitigate bitrot?

It is one of the few features that I'm unable to verify. Admittedly, bup seems to be the only other backup tool that specifically mentions the feature, though bup doesn't seem appropriate for my use-case anyway.

@enkore
Copy link
Contributor

enkore commented Nov 20, 2016

Borg has strong integrity checking, to detect bitrot and tampering.

check --repair can repair files with corrupted data (replace it with runs of zero), and heal them later should the data become available in the repo again.

Forward error correction (FEC) which would mean that bitrot can be corrected in place is not implemented at this time (#225). #225 hasn't been implemented yet for a few reasons; there is no one in the project with the necessary expertise, the storage format doesn't support adding it "out of the box", it's unclear how a correct implementation would look like that is actually efficient against rust bitrot and so on. (FAQ)

We looked into it a while ago, but it's just non-trivial with so many parameters to choose and get right/wrong. We also found that most FEC algorithms are designed to mitigate transmission errors and are mostly meant to be efficient in hardware, not software, making them rather slow. Storage FEC mostly deals with distributing data among a group of drives assuming total loss of a number of drives - not partial corruption of a drive.

@enkore enkore changed the title Question: Bitrot mitigation Bitrot mitigation Nov 20, 2016
@ThomasWaldmann
Copy link
Member

We already have #225, so close this one?

@enkore
Copy link
Contributor

enkore commented Nov 20, 2016

I guess. ftr: duplicate / closed shouldn't stop anyone from asking follow up questions :)

@enkore enkore closed this as completed Nov 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants