summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-25 19:37:34 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-25 19:37:34 -0400
commit56a96a46d06c9dbe105c8252ee36aae4cba0c628 (patch)
tree4e28e661486bf258635d1e4de592a852ff321794 /doc/git-annex.mdwn
parent3526a1cd3b42357e9175f10a90bd83e50021f006 (diff)
fsck: New --incremental-restart option which is nice for scheduling eg, monthly incremental fsck runs in cron jobs.
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index ffcfa1f3b..9b99ea284 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -266,6 +266,18 @@ subdirectories).
the next time you fsck, you can specify --more to skip over
files that have already been checked, and continue where it left off.
+ The --incremental-restart option makes a new incremental fsck be
+ started a configurable time after the last incremental fsck was started.
+ Note that the current incremental fsck has to completely finish
+ before the restart happens.
+
+ Maybe you'd like to run a fsck for 5 hours at night, picking up each
+ night where it left off. You'd like this to continue until all files
+ have been fscked. And once it's done, you'd like a new fsck pass to start,
+ but no more often than once a month. Then put this in a nightly cron job:
+
+ git annex fsck --incremental-restart 30d --time-limit 5h
+
* unused
Checks the annex for data that does not correspond to any files present