borg icon indicating copy to clipboard operation
borg copied to clipboard

borg2: check --verify-data --undelete-archives can be made faster

Open ThomasWaldmann opened this issue 1 year ago • 0 comments

borg check with --verify-data and --undelete-archives:

In verify_data, we do a full pass over all repo objects to verify their cryptographic authenticity. We could build a list of object IDs of archive metadata objects as a side effect there.

If we have that, we could accelerate rebuild_archives_directory using that list instead of iterating and reading all objects again.

Note: --undelete-archives is used rarely.

ThomasWaldmann avatar Oct 16 '24 16:10 ThomasWaldmann