Hello everyone,
I was wondering about the difference between restic check --read-data
compared to btrfs scrub
btrfs scrub
for my understanding compares written files on disk with the metadata saved for this file (or blocks in btrfs terms)
or from the docs:
Scrub is a pass over all filesystem data and metadata and verifying the checksums. If a valid copy is available (replicated block group profiles) then the damaged one is repaired. All copies of the replicated profiles are validated.
restic check --read-data
somehow is doing the same thing, reading files to check for integrity.
Both would detect data corruption, where as the first one is propably faster, as it is on fs layer.
The question is, can I savely skip restic check --read-data
in favour of btrfs scrub
(with I do anyway)?
Cheers