summaryrefslogtreecommitdiff
path: root/doc/todo/Provide_a___34__git_annex_satisfy__95__num__95__copies__34___command.mdwn
blob: 877e9fdbfbab00a12b9c558ae5a384583e125e78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Please provide a command that basically performs something like: 

git get --auto
for i in `git remote`; do git copy -to $i --auto; done


The use case is this:
I have a very large repo (300.000 files) in three places. Now I want the fastest possible way to ensure, that every file exists in annex.numcopies. This should scan every file one time and then get it or copy it to other repos as needed. Right now, I make one "git annex get --auto" in every repo, which is is a waste of time, since most of the files never change anyway!

> The closest we have to this is the (new) `git annex sync --content`.
> It does effectivly just what the shown for loop does.
> 
> But, that actually satisfies preferred content settings, which default
> to preferring every repo have a copy, and even if configured will
> typically be more than numcopies.
> 
> Numcopies is more of a minimum lower bound (though not a hard bound).
> --[[Joey]]