From 7bbb9f937000f0a54632af61900d89156b1f475f Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 21 Sep 2016 12:16:52 -0400 Subject: [PATCH] comment --- ..._6e3b1ff58fbdc10bcaca6d660eb1156f._comment | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/forum/Recover_repository_from_bup_repository/comment_1_6e3b1ff58fbdc10bcaca6d660eb1156f._comment diff --git a/doc/forum/Recover_repository_from_bup_repository/comment_1_6e3b1ff58fbdc10bcaca6d660eb1156f._comment b/doc/forum/Recover_repository_from_bup_repository/comment_1_6e3b1ff58fbdc10bcaca6d660eb1156f._comment new file mode 100644 index 0000000000..9b95472e44 --- /dev/null +++ b/doc/forum/Recover_repository_from_bup_repository/comment_1_6e3b1ff58fbdc10bcaca6d660eb1156f._comment @@ -0,0 +1,35 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2016-09-21T15:59:55Z" + content=""" +If your bup repository is a git-annex special remote, it contains only +the contents of annexed files, but not the rest of the git repository data +(no filenames, no pointers to git-annex keys, etc). + +Also, the files in it may be encrypted in a variety of ways depending on +how you set up that git-annex special remote. If encryption was used, most +likely it needs information that was stored in the git repository to +decrypt it. + +So, your best bet is to restore your git-annex repository from a backup or +a clone of that repository. Then you can just `git annex enableremote` the +bup special remote and use `git-annex get` as usual. If you didn't have a +backup or a clone of the git-annex repository, then important +information is lost. + +Without the git-annex repository, you can manually get the contents of the +files from the bup repository. In the bup repository, run `git branch`; +this will print out the names of all the git-annex keys that were stored +there. Then you can use `bup join` to extract the content of each key: + + bup join -r /path/to/bup/repository $key > $key.content + +Without the git-annex repository, there's no record of what the filename +was, but you can extract the content this way. + +But, if the key names start with "GPG" the the data is stored in bup +encrypted and you are probably out of luck (although if you used +encryption=pubkey when setting up the bup special remote, you +can use gpg to decrypt the files after `bup join`). +"""]]