From 13f2a45b5ea5c9c6f5bfc620ae867e5e8043e35d Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawkexhIpGcYa22aPQtLm-StpHiF-MHYPh5w" Date: Sun, 1 Jun 2014 13:55:58 +0000 Subject: [PATCH] Added a comment: Solved --- ..._5e63f5e6f45c11cc86b293ce8acad77f._comment | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 doc/forum/__34__Preseeding__34___a_special_remote/comment_2_5e63f5e6f45c11cc86b293ce8acad77f._comment diff --git a/doc/forum/__34__Preseeding__34___a_special_remote/comment_2_5e63f5e6f45c11cc86b293ce8acad77f._comment b/doc/forum/__34__Preseeding__34___a_special_remote/comment_2_5e63f5e6f45c11cc86b293ce8acad77f._comment new file mode 100644 index 0000000000..cdbf1e76de --- /dev/null +++ b/doc/forum/__34__Preseeding__34___a_special_remote/comment_2_5e63f5e6f45c11cc86b293ce8acad77f._comment @@ -0,0 +1,65 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawkexhIpGcYa22aPQtLm-StpHiF-MHYPh5w" + nickname="Robie" + subject="Solved" + date="2014-06-01T13:55:58Z" + content=""" +Thanks to Joey for pointing me in the right direction. I got this working now. + +There are approximately three steps: + +1. Obtain a mapping of git-annex key to friendly name, and rename all entries +in the special remote to their git-annex keys. + +2. Create and commit symlinks in the `master` branch (or wherever you want them). + +3. Add location tracking entries to the `git-annex` branch for all entries. + +First, I created an \"index\" file describing the contents of my special remote, +in the form \"KEY NAME\" where KEY is the git-annex key (I used SHA256) and NAME +is the name I want to use for each file. + +## Step 1: Map and rename + +In my case I was \"importing\" a ddar remote, so I wrote a quick script +(https://github.com/basak/ddar/blob/master/contrib/git-annex-convert.py) to +generate this index as well as rename all ddar archive members to their +git-annex keys instead. + +## Step 2: Create and commit symlinks + +Then, I created symlinks in my master branch using: + + exec 3> \"$log\";git add \"$log\";done + exec 3<&- + git commit -m'Import knowledge of ddar repository contents' + +## Verifying + +`git-annex fsck --from ddar --fast` checks that the keys expected in the +special remote can be found (replace the special remote name as needed). + +Skipping `--fast` will download all data to verify it. I didn't do this - +instead I just sampled one entry which seemed to be OK. + + + +"""]]