From 67b9805a3ef945272d512ed8e0efc92295d7a947 Mon Sep 17 00:00:00 2001 From: archimedes Date: Wed, 5 Apr 2017 19:05:07 +0000 Subject: [PATCH] --- doc/forum/Split_annex_into_multiple.mdwn | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/forum/Split_annex_into_multiple.mdwn diff --git a/doc/forum/Split_annex_into_multiple.mdwn b/doc/forum/Split_annex_into_multiple.mdwn new file mode 100644 index 0000000000..2ebdf63d53 --- /dev/null +++ b/doc/forum/Split_annex_into_multiple.mdwn @@ -0,0 +1,16 @@ +Lets say I have an annex, called Global in some location A. The plan is to mirror it to some location B. + +I suddenly decide that Global has become too unwieldy, and I wish to split it up. + +I "rsync -Lhav" the entire annex over to B, so it turns back into raw files (as I'm a little worried about the broken symlinks some have mentioned when using uninit). +I then reorganize all the files in B into five new annexes. Yay. + +Now, I clone those five repos back onto A. How can I use the content of the original repo "Global" to populate the new annexes? + +**Approach 1**: delete Global, use git-annex copy (slow, wasteful use of precious disk life) + +**Approach 2**: uninit Global, deal with whatever broken symlink mess *may* occur, and then use reinject. Reinject doesn't seem to work recursively afaik (ok, I can use find -type f -exec I guess...), and doesn't seem to want to work on files that are sitting inside an annex already (i.e. the uninit is not optional) + +So besides these two, are there any approaches I'm overlooking? + +Context: entire photo collection. split into e.g. parents digitized photos, my photos, etc