From 5843c0f905eed1f8bc2cdd29c8a42a510afe7d76 Mon Sep 17 00:00:00 2001 From: 501st_alpha1 <501st_alpha1@web> Date: Thu, 7 Mar 2019 06:52:25 +0000 Subject: [PATCH] Added a comment: Figured out how to sync with Keybase --- ...comment_1_38d868bf2e93c43091f9f337d9ec840d._comment | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/forum/Keybase_encrypted_git_as_a_remote__63__/comment_1_38d868bf2e93c43091f9f337d9ec840d._comment diff --git a/doc/forum/Keybase_encrypted_git_as_a_remote__63__/comment_1_38d868bf2e93c43091f9f337d9ec840d._comment b/doc/forum/Keybase_encrypted_git_as_a_remote__63__/comment_1_38d868bf2e93c43091f9f337d9ec840d._comment new file mode 100644 index 0000000000..082c0c0664 --- /dev/null +++ b/doc/forum/Keybase_encrypted_git_as_a_remote__63__/comment_1_38d868bf2e93c43091f9f337d9ec840d._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="501st_alpha1" + avatar="http://cdn.libravatar.org/avatar/b6fde94dbf127b822f7b6109399d50c9" + subject="Figured out how to sync with Keybase" + date="2019-03-07T06:52:25Z" + content=""" +While it doesn't \"just work\", I was able to get a solution set up that allows me to use a Keybase encrypted Git repo as a remote. I added the encrypted remote (with URL e.g. `keybase://private//.git`). A plain `git annex sync` worked, since that just syncs the normal Git branches. When I tried to do a sync with `--content`, it failed with `unable to check keybase`. My current workaround is to add a special remote that points to KBFS, e.g. `git annex initremote keybase-rsync type=rsync directory=/keybase/private//git-annex-files// encryption=none`. I originally tried a `directory` special remote, but when I did `git annex sync --content keybase-directory`, it worked for a while, but I started getting `rename: interrupted (Interrupted system call)` and similar errors. Switching to an rsync remote fixed the errors. I added a script [here](https://github.com/501st-alpha1/scott-script/blob/eba2827ebc1b61fe6b0c2fb2acc9b8cf6641465c/git-annex-add-keybase) to automate that plus a few other checks. + +Part way through the sync, I ran into an issue where it would hang immediately after sending a file to KBFS. As documented [here](https://github.com/keybase/client/issues/16467), running `run_keybase` to restart all the Keybase services fixed the issue for me. +"""]]