From 56a96a46d06c9dbe105c8252ee36aae4cba0c628 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 25 Sep 2012 19:37:34 -0400 Subject: fsck: New --incremental-restart option which is nice for scheduling eg, monthly incremental fsck runs in cron jobs. --- doc/git-annex.mdwn | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/git-annex.mdwn') 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 -- cgit v1.2.3