summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://launchpad.net/~stephane-gourichon-lpad <stephane-gourichon-lpad@web>2017-05-14 11:16:44 +0000
committerGravatar admin <admin@branchable.com>2017-05-14 11:16:44 +0000
commit5e8f4235b5f8b7aa70c04ea2e662cc57e9f3b922 (patch)
tree09022e55dd2b1591dc6be0972c17aeb6366fe4fc
parent971dd9a25289db4ec741b6d19ebd95a3f1937ef4 (diff)
Describe issue, actions done, question.
-rw-r--r--doc/forum/Fix_wrong_rsync_with_git_annex_reinit__63__.mdwn38
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/forum/Fix_wrong_rsync_with_git_annex_reinit__63__.mdwn b/doc/forum/Fix_wrong_rsync_with_git_annex_reinit__63__.mdwn
new file mode 100644
index 000000000..ea4e30c9f
--- /dev/null
+++ b/doc/forum/Fix_wrong_rsync_with_git_annex_reinit__63__.mdwn
@@ -0,0 +1,38 @@
+# Context
+
+* Had two repo A and B.
+* A had a lot of content not yet tracked and thus not available on B.
+* Filesystem problem on A: (relatively small) part of big repo content is lost.
+* In emergency, used rsync to propagate yet untracked content from failing A to sane B.
+* But forgot `ignore .git`, so rsync also partly rsync'ed `.git/annex` .
+* Now sane repo B believes it is the source one (same UUID A) as shown by `git annex info --fast`.
+
+Both A and B show:
+
+ UUID-of-A -- A [here]
+ UUID-of-B -- B
+
+# Actions done
+
+Search on Google, see [[https://git-annex.branchable.com/git-annex-reinit/]] .
+
+On B:
+
+ git annex reinit UUID-of-B
+ git annex fsck
+
+Now `git annex info -fast` on B shows as expected:
+
+ UUID-of-A -- A
+ UUID-of-B -- B [here]
+
+
+I'm currently doing `git annex copy --from B` to repropagate lost parts of A.
+
+# Question
+
+* Were actions done best thing to do?
+* Is there something more to do?
+* Something to check?
+
+Thanks.