summaryrefslogtreecommitdiff
path: root/doc/tips/googledriveannex.mdwn
blob: d628173e9c5f00d1f51e003222b4b5bf1a0054ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
googledriveannex 0.2.0
=========

Hook program for gitannex to use Google Drive as backend

# Requirements:

    python2
    python-httplib2

Credit for the googledrive api interface goes to google

# Install
Clone the git repository in your home folder.

    git clone git://github.com/TobiasTheViking/googledriveannex.git 

This should make a ~/googledriveannex folder

# Setup
Make the file executable, and link it into PATH

    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:

    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"