git-annex/doc/tips/googledriveannex.mdwn

33 lines
1 KiB
Text
Raw Normal View History

2014-01-10 14:34:11 +00:00
googledriveannex 0.2.0
2013-05-23 21:07:43 +00:00
=========
Hook program for gitannex to use Google Drive as backend
# Requirements:
python2
2014-01-10 14:30:37 +00:00
python-httplib2
2013-05-23 21:07:43 +00:00
Credit for the googledrive api interface goes to google
2014-01-10 14:30:37 +00:00
# Install
2013-05-23 21:07:43 +00:00
Clone the git repository in your home folder.
git clone git://github.com/TobiasTheViking/googledriveannex.git
This should make a ~/googledriveannex folder
2014-01-10 14:30:37 +00:00
# Setup
Make the file executable, and link it into PATH
2013-05-23 21:07:43 +00:00
2014-01-10 14:30:37 +00:00
cd ~/googledriveannex; chmod +x git-annex-remote-googledrive; sudo ln -sf `pwd`/git-annex-remote-googledrive /usr/local/bin/git-annex-remote-googledrive
2013-05-23 21:07:43 +00:00
2014-01-10 14:30:37 +00:00
# Commands for gitannex:
2013-05-23 21:07:43 +00:00
2014-01-10 14:30:37 +00:00
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
2013-05-23 21:07:43 +00:00
git annex describe googledrive "the googledrive library"