From 6c15166dbbeea47905b22a83b08b3c9eef267714 Mon Sep 17 00:00:00 2001 From: marekj Date: Fri, 6 Jan 2017 21:41:51 +0000 Subject: [PATCH] --- doc/forum/Wanted_content_based_on_date_added.mdwn | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 doc/forum/Wanted_content_based_on_date_added.mdwn diff --git a/doc/forum/Wanted_content_based_on_date_added.mdwn b/doc/forum/Wanted_content_based_on_date_added.mdwn new file mode 100644 index 0000000000..12c12e892e --- /dev/null +++ b/doc/forum/Wanted_content_based_on_date_added.mdwn @@ -0,0 +1,12 @@ +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 -- 2.30.2