summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-19 13:47:01 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-19 13:47:01 -0400
commit63a48309eb7f391fb8283751ac3d63d113deb38c (patch)
treeff2320a4aba9c5e0f787c7b809475e7e19e5c9e8 /doc
parentfb4be5f9b2d5794cb45f8c335ae8de5700947241 (diff)
parenta0200c339de116b6f88ee67da240c85445967612 (diff)
Merge branch 'master' of ssh://git-annex.branchable.com
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/Reusing_existing_annex.uuid.mdwn27
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/forum/Reusing_existing_annex.uuid.mdwn b/doc/forum/Reusing_existing_annex.uuid.mdwn
new file mode 100644
index 000000000..2d438e8a2
--- /dev/null
+++ b/doc/forum/Reusing_existing_annex.uuid.mdwn
@@ -0,0 +1,27 @@
+I recently replaced a disk that was failing with a new disk. Rather than just clone and create a new remote, I decided I'd reuse the existing anex.uuid, since I wanted to mount the replacement disk in the same spot/using the same name as before. The annex.uuid was the one I saw [here](http://git-annex.branchable.com/forum/Truly_purging_dead_repositories/#comment-b89d6a7ab50180c901f53761f8a1a99d).
+
+I have multiple disks that I store full copies of each of my repositories on; several are just regular git-annex remotes, and some are gcrypt remotes. All of them are local disks.
+
+When I ran a `git annex sync` in the repo with the reused UUID, the repo, and subsequently the other non-encrypted repos that I synced to, have lost knowledge of the encrypted repos, e.g. when I run `git-annex info`, I do not see the encrypted repos in that list. Even more strangely, this only happened in 2 out of 7 repos; 5 of the repos retained the knowledge of the gcrypt repos.
+
+The steps I used to recreate all of the repos was:
+
+```
+mkdir resued-uuid
+cd reused-uuid
+git init
+git config annex.uuid xxxxxxxxxxx-xxxxxxxx-xxxxxxxxx
+git annex init "My reused uuid repo"
+git annex fsck (as directed to run in the linked comment, but this didn't do anything because there were no files in the repo and the repo did not have other repos' remotes added to it)
+git remote add existing-repo ~/some/repo/path
+git annex sync
+git annex sync --content (all content copied over; subsequent fscks' don't reveal any damaged files)
+```
+
+I'm curious as to any insight as to why this might have happened and what went wrong.
+
+How can I add existing gcrypt remotes to the repos that are missing them.
+
+Does git annex copy some part of .git/config around to different repos?
+
+Can I just copy part of a .git/config with the grcrypt remotes listed there and sync them up?