Skip to content

borg check --verify-data performance suggestions? #8658

Answered by ThomasWaldmann
dahjelle asked this question in Q&A
Discussion options

You must be logged in to vote

borg check does 2 things (see docs for more details):

  • a low-level repository check (read and check the crc32 of all data in the repo)
  • a high-level archives check (normally only the metadata, but if you give --verify-data it checks also the content data - this is a cryptographic check, much stronger than the crc32 check)

The low-level check will always take the same time.

The high-level metadata check depends on the archives count checked, because each archive is checked separately.

The high-level "--verify-data" content data check does not depend on the amount of archives, because it uses Repository.scan() to look at each chunk only once, in the order as the chunks are found in the segm…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dahjelle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants