This commit is contained in:
https://www.google.com/accounts/o8/id?id=AItOawmkBwMWvNKZZCge_YqobCSILPMeK6xbFw8 2014-01-10 14:30:37 +00:00 committed by admin
parent bbd3dea531
commit f414c54ea8

View file

@ -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"