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

borg check: doing a repair using redundant related repos #6584

Open
ThomasWaldmann opened this issue Apr 12, 2022 · 2 comments
Open

borg check: doing a repair using redundant related repos #6584

ThomasWaldmann opened this issue Apr 12, 2022 · 2 comments

Comments

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented Apr 12, 2022

borg2: we can now have multiple "related" repos based on the same key material.

this includes the key for the id hash / MAC and also the chunker secret, thus chunking will happen in the same way and also the chunkid computation will happen in the same way.

so, if you make 2 individual backups (at approximately the same time) into 2 such repos, there will be a huge (although not necessarily 100%) overlap of chunkids with the respective content.

if one would use borg transfer to copy an archive to another related repo, there would be even a 100% overlap of chunkids for this archive.

even if both repos lose some chunks, there would be a good chance that each of these chunks can still be found in one of them.

guess the only missing piece is some code helping with such repairs.

could be something like: borg --repo=REPO_TO_REPAIR check --other-repo=REPO_TO_READ_FROM --repair

@dumblob
Copy link

dumblob commented Apr 13, 2022

Interesting - once there is a tool doing such repairs (and checks - e.g. I'd also want to know about discrepancies between chunks which shall be identical but are not), I'll give it a try.

@ThomasWaldmann ThomasWaldmann modified the milestones: 2.x, 2.0.0b1 Jul 2, 2022
@ThomasWaldmann ThomasWaldmann modified the milestones: 2.0.0b1, 2.0.0rc1 Jul 17, 2022
@ThomasWaldmann ThomasWaldmann modified the milestones: 2.0.0rc1, 2.0.0b2 Aug 6, 2022
@ThomasWaldmann ThomasWaldmann changed the title doing a repair using redundant related repos borg check: doing a repair using redundant related repos Aug 10, 2022
@ThomasWaldmann
Copy link
Member Author

Likely this is doable more easily / cleanly after we dropped support for old repos.

@ThomasWaldmann ThomasWaldmann modified the milestones: 2.0.0b2, 2.1 aka N+1 Aug 11, 2022
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

2 participants