summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawl9sYlePmv1xK-VvjBdN-5doOa_Xw-jH4U <Richard@web>2011-06-01 21:26:39 +0000
committerGravatar admin <admin@branchable.com>2011-06-01 21:26:39 +0000
commite280c0a4fca41eee68961db86446c91ed2d6adab (patch)
tree3dedaff89243189b1ac14dc26f1856e4579a865b
parent3d567aa64f263c6ee55c92e8b962087de063ebc8 (diff)
-rw-r--r--doc/forum/new_microfeatures.mdwn27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/forum/new_microfeatures.mdwn b/doc/forum/new_microfeatures.mdwn
index fe91addca..9b1f8231c 100644
--- a/doc/forum/new_microfeatures.mdwn
+++ b/doc/forum/new_microfeatures.mdwn
@@ -16,8 +16,35 @@ Combined, this would allow `git annex drop --numcopies=2 --trust=repoa --trust=r
[[wishlist:_git-annex_replicate]] suggests some way for git-annex to have the smarts to copy content around on its own to ensure numcopies is satisfied. I'd be satisfied with a `git annex copy --to foo --if-needed-by-numcopies`
+ > Contrary to the "basic" solution, I would love to have a git annex distribute which is smart enough to simply distribute all data according to certain rules. My ideal, personal use case during the next holidays where I will have two external disks, several SD cards with 32 GB each and a local disk with 20 GB (yes....) would be:
+
+ cd ~/photos.annex # this repository does not have any objects!
+ git annex inject --bare /path/to/SD/card # this adds softlinks, but does **not** add anything to the index. it would calculate checksums (if enabled) and have to add a temporary location list, though
+ git annex distribute # this checks the config. it would see that my two external disks have a low cost whereas the two remotes have a higher cost.
+ # check numcopies. it's 3
+ # copy to external disk one (cost x)
+ # copy to external disk two (cost x)
+ # copy to remote one (cost x * 2)
+ # remove file from temporary tracking list
+ git annex fsck # everything ok. yay!
+
+Come to think of it, the inject --bare thing is probably not a microfeature. Should I add a new wishlist item for that? -- RichiH
+
---
Along similar lines, it might be nice to have a mode where git-annex tries to fill up a disk up to the `annex.diskreserve` with files, preferring files that have relatively few copies. Then as storage prices continue to fall, new large drives could just be plopped in and git-annex used to fill it up in a way that improves the overall redundancy without needing to manually pick and choose.
+---
+
+If a remote could send on received files to another remote, I could use my own local bandwith efficiently while still having my git-annex repos replicate data. -- RichiH
+
+---
+
+Really micro:
+
+ % grep annex-push .git/config
+ annex-push = !git pull && git annex add . && git annex copy . --to origin --fast --quiet && git commit -a -m "$HOST $(date +%F--%H-%M-%S-%Z)" && git push
+ %
+
+-- RichiH
--[[Joey]]