[Borgbackup] Get know which files are damaged by: Data integrity error: Segment entry checksum mismatch

Marcin Zajączkowski mszpak at wp.pl
Tue Apr 2 15:34:10 EDT 2019


Thanks for you quick reply Thomas.

On 2019-04-02 20:21, Thomas Waldmann wrote:
> 
>> Data integrity error: Segment entry checksum mismatch [segment 90,
>> offset XXX]
> 
> 90 is the segment number and also the file name of the affected file.
> have a look into repo_dir/data/... and you'll see.

Is it possible with that knowledge determine which backed up file(s) are
affected (e.g. to get know if I can take it from some other backup)?

Marcin



>> 1. Is it possible to divide "borg check" into smaller "chunks" to do not
>> have to wait long hours to get a result (and just run it with a given
>> number of that smaller part - of course assuming to keep the repository
>> itself untouched in the mean time)?
> 
> borg 1.1 supports this:
> - --repository-only (only check repo, low-level)
> - --archives-only (only check archives, high-level)
> 
> borg 1.2 (not released yet) will support:
> - --max-duration (to limit how long it runs at a time, splitting the
> whole check into multiple runs. in this mode, it ONLY does the crc32
> segment file entry check)
> 
>> 2. Would performing the backup again "fix" the problem (assuming the
>> reason of data corruption is detected and fixed before that operation)
>> or I need to "repair" it before?
> 
> Guess you need to first find and fix the root cause of the corruption
> (e.g. fix your hardware), then do a borg check --repair.
> 
> Whether this is a case of data loss in the repo has to be seen, this
> depends on whether the issue is permanent or intermittent.
> 


-- 
https://blog.solidsoft.info/ - Working code is not enough


More information about the Borgbackup mailing list