diff options
author | vsk62gate <vsk62gate@web> | 2015-01-19 05:42:31 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2015-01-19 05:42:31 +0000 |
commit | 989df76bfa814d1cab43d3080697b500a54761ed (patch) | |
tree | 9072deedfd61962a6444b8b5fc63adf4b70d7be5 | |
parent | 69b13d9583f9aff85308fd36fd087637676ab844 (diff) |
-rw-r--r-- | doc/forum/adding_remote_bup_repo_using_ssh.mdwn | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/forum/adding_remote_bup_repo_using_ssh.mdwn b/doc/forum/adding_remote_bup_repo_using_ssh.mdwn new file mode 100644 index 000000000..1c13d7f8e --- /dev/null +++ b/doc/forum/adding_remote_bup_repo_using_ssh.mdwn @@ -0,0 +1,42 @@ +I have two machines connected to my home network. machine A. Machine A has a git-annex repo which stores the data using a remote bup repo. The bup repo resides on Machine A itself. Now, I want to set up the same kind of environment in Machine B ( git annex repo backed down by bup remote). The only condition is that I need to re-use the bup repo in the machine A. So I went up like this: + + git clone ssh://192.168.1.33/path/to/git-annex-repo-on-machine-a + +This succeeded. The next step was to add a reference to the bup repo on machine A to this new git-annex repo in machine B. I went about like this: + + git annex initremote mybup type=bup encryption=none buprepo=192.168.1.33:/path/to/bup-repo-on-machine-a + +This seems to work OK, except the fact that the following shows up: + + Reinitialized existing Git repository in /Users/XXX/.bup/ + Reinitialized existing Git repository in /Users/path/to/bup-repo-on-machine-a + +*Q1*: Why does git-annex create bup repos on the local folder while initializaing a remote bup repo? + +After that, I tried to get the file from the git repo using + + git annex get <file> --from mybup + +..And nothing happened. This is the debug output from the last command : + + read: git ["--git-dir=/private/tmp/annexed-setups/.git","--work-tree=/private/tmp/annexed-setups","show-ref","git-annex"] + read: git ["--git-dir=/private/tmp/annexed-setups/.git","--work-tree=/private/tmp/annexed-setups","show-ref","--hash","refs/heads/git-annex"] + read: git ["--git-dir=/private/tmp/annexed-setups/.git","--work-tree=/private/tmp/annexed-setups","log","refs/heads/git- annex..c9af31cb3e563657e83b8b8e1f9a8de1ff690e4f","-n1","--pretty=%H"] + read: git ["--git-dir=/private/tmp/annexed-setups/.git","--work-tree=/private/tmp/annexed-setups","log","refs/heads/git-annex..b7b2af7f94af4770d5b4da7231bc3e41c0a6129d","-n1","--pretty=%H"] + read: git ["--git-dir=/private/tmp/annexed-setups/.git","--work-tree=/private/tmp/annexed-setups","log","refs/heads/git-annex..7b1017c5e68ec5a2b298b899bf723d0093fa0c7c","-n1","--pretty=%H"] + chat: git ["--git-dir=/private/tmp/annexed-setups/.git","--work-tree=/private/tmp/annexed-setups","cat-file","--batch"] + read: git ["--git-dir=/private/tmp/annexed-setups/.git","--work-tree=/private/tmp/annexed-setups","ls-files","--cached","-z","--","file.iso"] + +The file was not obtained from the remote. However, when I did + + git annex fsck --from mybup + +This resolved all the files properly and then when I did a + + git annex list. + +it showed all files to be reachable from the mybup repo. + +*Q2* Is this the correct workflow? +*Q3* Do I need to do a [costly] fsck for bup remote to properly work over ssh? + |