This commit is contained in:
parent
bbd3dea531
commit
f414c54ea8
1 changed files with 11 additions and 7 deletions
|
@ -6,23 +6,27 @@ Hook program for gitannex to use Google Drive as backend
|
||||||
# Requirements:
|
# Requirements:
|
||||||
|
|
||||||
python2
|
python2
|
||||||
|
python-httplib2
|
||||||
|
|
||||||
Credit for the googledrive api interface goes to google
|
Credit for the googledrive api interface goes to google
|
||||||
|
|
||||||
## Install
|
# Install
|
||||||
Clone the git repository in your home folder.
|
Clone the git repository in your home folder.
|
||||||
|
|
||||||
git clone git://github.com/TobiasTheViking/googledriveannex.git
|
git clone git://github.com/TobiasTheViking/googledriveannex.git
|
||||||
|
|
||||||
This should make a ~/googledriveannex folder
|
This should make a ~/googledriveannex folder
|
||||||
|
|
||||||
## Setup
|
# Setup
|
||||||
Run the program once to make an empty config file
|
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=external externaltype=googledrive encryption=shared folder=gitannex
|
||||||
git annex initremote googledrive type=hook hooktype=googledrive encryption=shared
|
|
||||||
|
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"
|
git annex describe googledrive "the googledrive library"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue