summaryrefslogtreecommitdiff
path: root/doc/todo/Provide_a___34__git_annex_satisfy__95__num__95__copies__34___command.mdwn
blob: cbd01181fa3e20f429ff3264eb22e3373c671b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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!

> Now `git annex sync --content` does effectivly just what the shown for
> loop does. [[done]]
> 
> The only difference is that copy --auto proactively downloads otherwise
> unwanted files to satisfy numcopies, and sync --content does not.
> We need a [[preferred_content_numcopies_check]] to solve that.
> --[[Joey]]