This commit is contained in:
https://www.google.com/accounts/o8/id?id=AItOawmkBwMWvNKZZCge_YqobCSILPMeK6xbFw8 2014-01-10 14:32:10 +00:00 committed by admin
parent fe703f4e82
commit 3998bec7c8

View file

@ -1,5 +1,7 @@
[Megaannex](https://github.com/TobiasTheViking/megaannex) megaannex
is a hook program for git-annex to use mega.co.nz as backend =========
Hook program for gitannex to use mega.co.nz as backend
# Requirements: # Requirements:
@ -7,35 +9,21 @@ is a hook program for git-annex to use mega.co.nz as backend
requests>=0.10 requests>=0.10
pycrypto pycrypto
Credit for the mega api interface goes to: Credit for the mega api interface goes to: https://github.com/richardasaurus/mega.py
<https://github.com/richardasaurus/mega.py>
## Install
# Install
Clone the git repository in your home folder. Clone the git repository in your home folder.
git clone git://github.com/TobiasTheViking/megaannex.git git clone git://github.com/TobiasTheViking/megaannex.git
This should make a ~/megannex folder This should make a ~/megaannex folder
## Setup # Setup
Make the file executable, and link it into PATH
Run the program once to make an empty config file. cd ~/megaannex; chmod +x git-annex-remote-mega; sudo ln -sf `pwd`/git-annex-remote-mega /usr/local/bin/git-annex-remote-mega
cd ~/megaannex; python2 megaannex.py # Commands for gitannex:
Edit the megaannex.conf file. Add your mega.co.nz username, password, and folder name. USERNAME="user" PASSWORD="pword" git annex initremote mega type=external externaltype=mega encryption=shared folder=gitannex
## Configuring git-annex
git config annex.mega-hook '/usr/bin/python2 ~/megaannex/megaannex.py'
git annex initremote mega type=hook hooktype=mega encryption=shared
git annex describe mega "the mega.co.nz library" git annex describe mega "the mega.co.nz library"
## Notes
You may need to use a different command than "python2", depending
on your python installation.
-- Tobias