aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Müller2021-11-14 11:57:08 +0100
committerWolfgang Müller2021-11-14 11:57:08 +0100
commit4078fc302313001b29057aa856e9b46ff659ebd7 (patch)
tree73638dbddefe13997170010f7ab702109a52f607
parent981d4f04c8c66946d4a81da61d0c6c035a166d52 (diff)
downloadlifeboat-4078fc302313001b29057aa856e9b46ff659ebd7.tar.gz
Check pack files for integrity0.4.0
The check command does not verify the actual pack files by default, since restic needs to read each one and the repository may be hosted on a cloud repository where downloads are expensive. Since we are working with local repositories, checking for integrity is not that expensive. However, to ease the daily burden, use the --read-data-subset option to check only a random 10% of the repository. After a couple of weeks, then, we can be reasonably sure that, if no errors were raised, the repository is still intact.
Diffstat (limited to '')
-rwxr-xr-xlifeboat2
1 files changed, 1 insertions, 1 deletions
diff --git a/lifeboat b/lifeboat
index 11148f9..2d88f9d 100755
--- a/lifeboat
+++ b/lifeboat
@@ -55,7 +55,7 @@ retain_default() {
}
clean_default() {
- restic check
+ restic check --read-data-subset 10%
restic prune
}