[Borgbackup] What to do if file is lost?
Tomasz Melcer
liori at exroot.org
Wed Jul 6 11:57:44 EDT 2016
On 06.07.2016 17:44, Marian Beermann wrote:
> The data files is another story. There's no forward error correction in
> Borg itself, so errors can be detected but only some minor errors can be
> corrected. "borg check --repair" will replace corrupted data chunks with
> runs of zeroes of the same length, while saying where it did that.
> Corrupted commit tags can take some more data with them to nirvana.
So, please correct me if I'm wrong:
Let say there was a bad block inside one of the data files. After
recovery I can just run `borg check --repair`, and while some of the
data will be lost, other chunks will still be there. Therefore, I can
fully recover all past backups except for the chunk(s) hit by the bad
blocks.
One more question. If the next backup will happen to have the same
chunk, will it be added to the backup, filling the missing part for
older backups? In some scenarios I find it likely that a possible bad
block could just hit a chunk of one of the files that are still
available on the live system.
--
Tomasz Melcer
More information about the Borgbackup
mailing list