summaryrefslogtreecommitdiff
path: root/doc/forum
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawkey8WuXUh_x5JC2c9_it1CYRnVTgdGu1M <Dustin@web>2012-01-04 03:44:52 +0000
committerGravatar admin <admin@branchable.com>2012-01-04 03:44:52 +0000
commitde6a2db36cb97165fed283e6f5063594b443d95a (patch)
tree46a3d1b07dd24524fc1e0dd3b19cae999f4bf509 /doc/forum
parent629b794eb5dd339e6278a0791d424877f40a6ff3 (diff)
Diffstat (limited to 'doc/forum')
-rw-r--r--doc/forum/Auto_archiving.mdwn15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/forum/Auto_archiving.mdwn b/doc/forum/Auto_archiving.mdwn
new file mode 100644
index 000000000..9a7a19cb7
--- /dev/null
+++ b/doc/forum/Auto_archiving.mdwn
@@ -0,0 +1,15 @@
+I've been toying with the idea of auto archiving files (that is - removing them from .) based on a set of rules.
+
+Git already provides attribute management for files and I put together a simple script that tries to achieve the following:
+
+* Look for files with X copies (including a local one)
+* Verify that the file is not recent (defined as not having been dropped or getted within X days )
+* Verify that the file has an annex.archive attribute
+* Archive if the above is met
+
+Here is the script:
+http://pastebin.com/53iLqyPd
+
+You just add the annex.archive attribute to files via .gitattributes to use
+
+Open to thoughts / suggestions