summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-10-26 15:58:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-10-26 15:58:02 -0400
commit8edab5f0dd7134451bfdd632174ec9559a6ae806 (patch)
treef1269e7696b06551c74095b72504dc91eab1fb7b
parentbd48389f24f3af056314634f47e6776c6b16827a (diff)
thought
-rw-r--r--doc/todo/Deleting_Unused_Files_by_Age.mdwn14
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/todo/Deleting_Unused_Files_by_Age.mdwn b/doc/todo/Deleting_Unused_Files_by_Age.mdwn
index 54e93277c..b72768bca 100644
--- a/doc/todo/Deleting_Unused_Files_by_Age.mdwn
+++ b/doc/todo/Deleting_Unused_Files_by_Age.mdwn
@@ -1 +1,13 @@
-I periodically move unused files to one of my servers. What I would like to do is drop any unused file that has been unused for say more than 6 months? I would like to not drop all unused files.
+I periodically move unused files to one of my servers. What I would like to
+do is drop any unused file that has been unused for say more than 6 months?
+I would like to not drop all unused files.
+
+> It strikes me that this is quite similar to how git handles deleting
+> stale refs with the reflog. So, if `git annex unused` were changed to
+> also look at the reflog, it would keep all files referred to by all refs
+> in the reflog, until the reflog expires. You could then set reflog expiry
+> to 6 months, and be done.
+>
+> However, I think that many users expect git annex unused to be able to
+> immediately find and remove a file after it's been deleted. So this
+> probably needs to be a configurable behavior. --[[Joey]]