[Borgbackup] Recovery from missing segments

David Gasaway dave at gasaway.org
Wed Jun 27 01:22:17 EDT 2018


Hi,

I'd like to ask if borg can recover gracefully from missing segments.
That is, say a new segment is created and recorded, but the next time
that borg runs, the segment file is no longer there.  Will borg
recognize this on the next backup and recreate the file?  Or will it
only see that the chunks were previously saved and move on?  I'm not
particularly concerned that a particular archive may be "corrupt",
only that subsequent archives are intact.

The docs for 'borg check' say about an archive check: "For all files
(items) in the archive, for all chunks referenced by these files,
check if chunk is present."  Does that mean checking for  existence of
the segment where the chuck is expected to be stored, for the chunk
object in the archive metadata, or both?  I don't mind running a
archive check, but I'm not sure catches the above scenario.  In fact,
I did run one, but it seemed to finish quickly without reporting any
issue.  Running a repository check is very painful, as in my
configuration, it means downloading every segment.

Thanks.

-- 
-:-:- David K. Gasaway
-:-:- Email: dave at gasaway.org


More information about the Borgbackup mailing list