git-annex/Assistant/Types
Joey Hess 3da0064657 assistant unused file handling
Make sanity checker run git annex unused daily, and queue up transfers
of unused files to any remotes that will have them. The transfer retrying
code works for us here, so eg when a backup disk remote is plugged in,
any transfers to it are done. Once the unused files reach a remote,
they'll be removed locally as unwanted.

If the setup does not cause unused files to go to a remote, they'll pile
up, and the sanity checker detects this using some heuristics that are
pretty good -- 1000 unused files, or 10% of disk used by unused files,
or more disk wasted by unused files than is left free. Once it detects
this, it pops up an alert in the webapp, with a button to take action.

TODO: Webapp UI to configure this, and also the ability to launch an
immediate cleanup of all unused files.

This commit was sponsored by Simon Michael.
2014-01-22 22:53:18 -04:00
..
Alert.hs assistant unused file handling 2014-01-22 22:53:18 -04:00
BranchChange.hs split BranchChange and lifted 2012-10-29 19:20:54 -04:00
Buddies.hs finished XMPP pairing! 2012-11-05 17:43:17 -04:00
Changes.hs fix bda237f14a 2013-04-24 17:50:11 -04:00
Commits.hs remove last use of TSet 2013-04-24 17:16:04 -04:00
DaemonStatus.hs queue and start download of git-annex from web, using git-annex, when upgrade is started 2013-11-23 17:21:04 -04:00
NamedThread.hs assistant: Detect stale git lock files at startup time, and remove them. 2013-10-05 17:04:21 -04:00
NetMessager.hs fix minor memory leak caused by recent CanPush change 2013-05-22 15:47:06 -04:00
Pushes.hs refactor XMPP client 2012-11-03 14:16:17 -04:00
RepoProblem.hs add post-repair actions 2013-10-29 14:25:20 -04:00
ScanRemotes.hs split cost out into its own module 2013-03-13 16:30:34 -04:00
ThreadedMonad.hs moved ThreadedMonad to Types 2012-10-29 19:07:10 -04:00
ThreadName.hs webapp: Now allows restarting any threads that crash. 2013-01-26 17:09:33 +11:00
TransferQueue.hs moved AssociatedFile definition 2013-07-04 02:36:02 -04:00
TransferrerPool.hs tested transferkeys restarting; fix some bugs 2014-01-06 17:07:08 -04:00
TransferSlots.hs pushed Assistant monad down into DaemonStatus code 2012-10-30 15:39:15 -04:00
UrlRenderer.hs clean up urlrenderer handling when the webapp is not built 2013-04-03 17:48:54 -04:00