2013-10-26 19:58:02 +00:00
|
|
|
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]]
|
2015-07-07 21:13:50 +00:00
|
|
|
|
|
|
|
>> Implemented this, `git annex unused --used-refspec=+refs/heads/*:reflog`
|
|
|
|
>> will consider all head refs as used (the default), plus consider all
|
|
|
|
>> refs in the reflog as used. [[done]] --[[Joey]]
|