check
: add spot check functionality
#1389
Labels
S-triage
Status: Waiting for a maintainer to triage this issue/PR
check
: add spot check functionality
#1389
Summary
Implement a "spot check" feature for rustic to enhance consistency checks by comparing source file counts and data against the latest backup archive. This feature is intended to detect discrepancies like incorrect excludes, inadvertent deletes, or malicious file modifications.
Background
Most existing consistency checks do not validate against the original source files, leaving a potential blind spot if the source files are altered or deleted. The spot check aims to address this by performing a targeted comparison, ensuring backup integrity while balancing performance.
Key Features
File Count Comparison with Tolerance
Sampling for Efficiency
Hash-Based Data Comparison
Tolerance for Data Mismatches
Proposed Configuration Options
count_tolerance_percentage
: Max allowed percentage difference in file count between source and archive.data_sample_percentage
: Percentage of files to sample for comparison.data_tolerance_percentage
: Max allowed percentage of sampled files with mismatches before failing the check.Usage Notes
Additional Considerations
xxhash
for efficient file hashing; users should ensure it is installed.Benefits
Potential Challenges
(needs refinement, created by ChatGPT from https://torsion.org/borgmatic/docs/how-to/deal-with-very-large-backups/#spot-check )
CC: Addresses spot check idea from rustic-rs/docs#111
The text was updated successfully, but these errors were encountered: