Skip to content

Repairing catastrophic repository damage #10015

Description

@sshaikh

Let's hypothetically I ran an errant dd command on the disk holding my repo, in such a way that after salvaging what was possible, a borg check --repair can't even complete:

Data integrity error: Invalid segment entry size 0 - too small [segment 56971, offset 110112635]

Deleting the index file and running --repair --repository-only gives the following:

Data integrity error: Invalid segment magic [segment 51735, offset 0]

What options do I have?

If the repo has to be written off, is it possible to repair it using a second repo that has largely been back up to with the same settings (I use borgmatic pointing to two repos). Is the most straightforward way just to copy the good repo over?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions