summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawmkBwMWvNKZZCge_YqobCSILPMeK6xbFw8 <TobiasTheViking@web>2014-01-10 14:30:37 +0000
committerGravatar admin <admin@branchable.com>2014-01-10 14:30:37 +0000
commit3523f376b80e4f263592a0ffb0bfc806960cbda9 (patch)
treefc8a388594c75106fb38eef737a1f33a200e2f89
parentb1ebe2f000e91936cd3bea1dd8f4404366cf5306 (diff)
-rw-r--r--doc/tips/googledriveannex.mdwn18
1 files changed, 11 insertions, 7 deletions
diff --git a/doc/tips/googledriveannex.mdwn b/doc/tips/googledriveannex.mdwn
index abecf10cf..96821dd6b 100644
--- a/doc/tips/googledriveannex.mdwn
+++ b/doc/tips/googledriveannex.mdwn
@@ -6,23 +6,27 @@ Hook program for gitannex to use Google Drive as backend
# Requirements:
python2
+ python-httplib2
Credit for the googledrive api interface goes to google
-## Install
+# Install
Clone the git repository in your home folder.
git clone git://github.com/TobiasTheViking/googledriveannex.git
This should make a ~/googledriveannex folder
-## Setup
-Run the program once to make an empty config file
+# Setup
+Make the file executable, and link it into PATH
- cd ~/googledriveannex; python2 googledriveannex.py
+ cd ~/googledriveannex; chmod +x git-annex-remote-googledrive; sudo ln -sf `pwd`/git-annex-remote-googledrive /usr/local/bin/git-annex-remote-googledrive
-## Commands for gitannex:
+# Commands for gitannex:
- git config annex.googledrive-hook '/usr/bin/python2 ~/googledriveannex/googledriveannex.py'
- git annex initremote googledrive type=hook hooktype=googledrive encryption=shared
+ git annex initremote googledrive type=external externaltype=googledrive encryption=shared folder=gitannex
+
+An oauth authentication link should now be launched in the default browser. Authenticate and you will be proved with a code.
+
+ OAUTH='authentication code' git annex initremote googledrive type=external externaltype=googledrive encryption=shared folder=gitannex
git annex describe googledrive "the googledrive library"