[Borgbackup] Borg check fails

Thomas Portmann thomas at portmann.org
Sat Jul 25 07:05:41 EDT 2020


Basically, you can fix it with "borg check --repair" (see the 
documentation and the most recent changelog).

However, a sensible approach highly depends on the situation. First of 
all, I would want to know the root cause of the damage, at least an 
educated guess of it. Which file system is the repo on?

Independently, I would deem it a good idea to make a copy of the 
repository before you repair it.

In any case, BEFORE repairing, I would

1.  install the most recent release, 1.1.13. If there is no such package 
in your distribution, use the standalone version. (I always used the 
standalone versions, because in stable Debian or Ubuntu which I am 
working on, the Borg versions, e.g. Pre-1.1.11, are know to have some 
problems which could cause such damages---though in very, very 
unprobable circumstances.) In a client-server setup, install it on both 
sides,

2.  remove the local cache, by "borg delete --cache-only <your repo>", 
on the (or all, resp.) client machine(s).


Thomas


Am 24.07.20 um 17:24 schrieb Joseph Hesse:
> I did a "borg check" on my repository and got the following 279 lines of 
> output.  A repeat gave similar output.  How do I fix this?
> Thank you,
> Joe
> 
> Only the first 10 and last 10 of my output is shown since the lines all 
> have the same form.
> 
> Starting repository check
> Data integrity error: Segment entry checksum mismatch [segment 417, 
> offset 33880751]
> Starting repository index check
> Index object count mismatch.
> committed index: 106112 objects
> rebuilt index:   105838 objects
> ID: 765bd078f818580f3d10497c17202f13bf39cd469ed47aa8b62baf1085244431 
> rebuilt index: <not found>      committed index: (417, 507500162)
> ID: 08a9bcdf76d07b76d09dbad99ad718a89a240c944d14fbcd233ae8e3a2656e54 
> rebuilt index: <not found>      committed index: (417, 124860021)
> ID: 0b678484bb376160780b8f272d1915f0467a5cdf3f1fb47c1a173a547dc2c3b5 
> rebuilt index: <not found>      committed index: (417, 488433694)
> ID: b1a2a8d320b634384edbed3ad32cfbb724a4599653e0750300e1b0bf87fbcd15 
> rebuilt index: <not found>      committed index: (417, 507508789)
> ID: d6085001a7acae43295d73c94c2cc8ac48031d3f5896a2b9f4ad4537072a06bf 
> rebuilt index: <not found>      committed index: (417, 29311001)
> ID: b5be8ced0b12ab924618b9573c2ef0701373b7bc9c2d37c1047131d3c6266b10 
> rebuilt index: <not found>      committed index: (417, 517976434)
> ID: 7da3fcc652a8e7d352c47895e6fbac09de2ae7408572feec78717ff14dfaf579 
> rebuilt index: <not found>      committed index: (417, 161177452)
> ID: 859554b2a0acbaa1473d2aaa90e5e8c8d8b86c09b8c3ec32892927a57c26ab9e 
> rebuilt index: <not found>      committed index: (417, 457360972)
> ID: a0c670e945c5c6c1da93f592a3179f679f39d62bd765cbfa03c20d0bc302bcee 
> rebuilt index: <not found>      committed index: (417, 172471204)
> ID: 2e6d0c6771978804ea709943adbd8dd6e80c6f6e22c02611f142513a52b8dd01 
> rebuilt index: <not found>      committed index: (417, 203174592)
> lines omitted
> ID: b55bccb2cfa21242cfecaed451b9bad613c3ad9f6793e4b713cee0b9a76075fa 
> rebuilt index: <not found>      committed index: (417, 276188088)
> ID: f55548a7de9eed6401566b18ece320bbb608dccc293d47fadc7c2445af94c72b 
> rebuilt index: <not found>      committed index: (417, 508929872)
> ID: da8bf4ed2684a6ccc25f4cbfd751df06cbb39a8686a75b2588dc86ceb79a6967 
> rebuilt index: <not found>      committed index: (417, 149067557)
> ID: 4f27f45e456ce2a53de4c6a4f2106abc911eff37700653341f6c9588121fce23 
> rebuilt index: <not found>      committed index: (417, 215454220)
> ID: 35f32718dc53fb35e77d099c6fd2f915c0ec35002a24b64b48a226d7ebb34dae 
> rebuilt index: <not found>      committed index: (417, 297246550)
> ID: 22206850cfa34c18b68ed8f8721abf009ae4da0bb9ad16af5f5e0612d9706119 
> rebuilt index: <not found>      committed index: (417, 486429424)
> ID: ba9298dad697562b7c543edcaf012922882a2728b75f6b6c5e8b222e4e8ad353 
> rebuilt index: <not found>      committed index: (417, 184406940)
> ID: 6f821cbfaaa9699295934cb98dad3716e59ee47ee97faacf9b7f9856faac62d7 
> rebuilt index: <not found>      committed index: (417, 407150070)
> ID: 4c2ef44a849f5199e4c3431fa0cc776adc9e78e60b9dfc246db62533ae12c2c1 
> rebuilt index: <not found>      committed index: (417, 516585126)
> ID: 4aa704e9c63ac38921f5ef402c023cce6c30254235f4dd1256aae35256b3ea9a 
> rebuilt index: <not found>      committed index: (417, 97268626)
> ID: 7018a029632b88dd793b593f59b51992473435731a66c99900a84ff32baa9e9a 
> rebuilt index: <not found>      committed index: (417, 166554942)
> Completed repository check, errors found.
> 
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup


More information about the Borgbackup mailing list