Hi,
I was wondering whether it was possible to configure git annex in a way, that new content is held in a specific repository until it is considered old.
I found that "git config annex.genmetadata true" creates year and month tags in the metadata. However, creating the wanted expression poses a problem. Afaik there is no way to access the current year/month in a wanted expression and no way to do arithmetic in a wanted expression. Furthermore, I do not know, when the assistant checks wanted expressions for matches? I assume it does so only when something changes in git or when the wanted expressions change but not in regular intervals?
I guess I could whip up a cronjob that changes the wanted expression every month and do the calculations outside of git annex but this seems somehow wrong.
Is this a problem other users share or maybe have already solved?
Cheers, Marek
The assistant re-checks preferred content as rarely as it can get away with, since that can be an expensive process. Basically, it checks it when starting up, and when a remote is added or edited, and when it detects certian kinds of divergences between the local repository and a remote.
I agree that it's not possible to express an expiry using a preferred content expression.
What would work better is if you can move the old files to some other directory via a cron job or whatever means. Then it's easy to configure it not to want files in that directory.