Hello,
I have a Samsung ARM Chromebook running Ubuntu with crouton (chroot in chromeos). I want to use git-annex, and add the chromebook as a second "device" to my already set up git-annex repo on my main pc. That repo is one folder set up with the assistant, and it has one encrypted ssh(rsync) remote.
I've read that the webapp is not available on ARM, and I've also found a topic with a simple script to replicate git-annex-assistant steps: http://git-annex.branchable.com/forum/Running_assistant_steps_manually/. So, I've used the cabal
steps to install git-annex manually, which is working.
I want to use git-annex in a dropbox-like fashion, folder and file sync between these two devices (and maybe later on another encrypted ssh remote). However I'm in need of some guidance regarding the command line usage and such.
My questions are:
- How do I "add" the chromebook repo to the existing git-annex setup?
- The machines are not on at the same time. One is my main workstation and the chromebook is my "mobile friend". The encrypted ssh remote is on a VPS, that is always on.
- How do I configure the syncing between the main machine, the chromebook and the encrypted ssh remote on the vps? If possible, bi-directional.
If it is possible, both explanation and command line examples would help a lot.
I know I'm commenting on something old but I was looking this topic up and felt this may help any future questions. :S
its just like any other machine with git annex. You can connect your instance of git annex that runs in the chroot (crouton) with your existing set up like normal. usb, ssh, xmpp+cloud
you will need a transfer repository, that vps should do nicely (I use a few USB drives)
if it does not, also doable. Again if you want simple configuration git annex webapp will prompt you for credentials; in this case it may as you to encrypt the data (http://git-annex.branchable.com/encryption/).
$ cd ~/Downloads/Documents
$ git init
$ git annex init "chromebook"
$ git remote add my-ssh ssh://user@google.com/home/user/annex/Documents #I recommend you use an 'ssh alias' so you can just do 'ssh://alias1/home/user/annex/Documents'
$ git annex add
$ git annex sync
$ git annex sync --content #I do not remember but I believe it may be necessary to do this for some versions of git annex.
git annex may or may not complain about git annex being installed on your machine. (it does for me each time I do this... perhaps I'm missing a step?) If you know git annex is installed in the $PATH of your server (also your machine) then you can just run
$ git config remote.my-ssh.annex-ignore false
$ git annex sync
$ git annex sync --content
$ cd ~/Downloads/Documents
$ git annex direct
You can also 'unlock' the files too but you will need to run git annex unlock every time you need to read/write a file using.
$ git annex unlock