2014-01-10 14:33:59 +00:00
|
|
|
megaannex 0.2.0
|
2014-01-10 14:32:10 +00:00
|
|
|
=========
|
|
|
|
|
|
|
|
Hook program for gitannex to use mega.co.nz as backend
|
2013-05-21 17:28:09 +00:00
|
|
|
|
|
|
|
# Requirements:
|
|
|
|
|
2013-05-21 18:35:32 +00:00
|
|
|
python2
|
2013-05-21 17:28:09 +00:00
|
|
|
requests>=0.10
|
|
|
|
pycrypto
|
|
|
|
|
2014-01-10 14:32:10 +00:00
|
|
|
Credit for the mega api interface goes to: https://github.com/richardasaurus/mega.py
|
2013-05-21 17:28:09 +00:00
|
|
|
|
2014-01-10 14:32:10 +00:00
|
|
|
# Install
|
2013-05-21 17:28:09 +00:00
|
|
|
Clone the git repository in your home folder.
|
|
|
|
|
|
|
|
git clone git://github.com/TobiasTheViking/megaannex.git
|
|
|
|
|
2014-01-10 14:32:10 +00:00
|
|
|
This should make a ~/megaannex folder
|
2013-05-21 17:28:09 +00:00
|
|
|
|
2014-01-10 14:32:10 +00:00
|
|
|
# Setup
|
|
|
|
Make the file executable, and link it into PATH
|
2013-05-21 17:28:09 +00:00
|
|
|
|
2014-01-10 14:32:10 +00:00
|
|
|
cd ~/megaannex; chmod +x git-annex-remote-mega; sudo ln -sf `pwd`/git-annex-remote-mega /usr/local/bin/git-annex-remote-mega
|
2013-05-21 17:28:09 +00:00
|
|
|
|
2014-01-10 14:32:10 +00:00
|
|
|
# Commands for gitannex:
|
2013-05-21 17:28:09 +00:00
|
|
|
|
2014-01-10 14:32:10 +00:00
|
|
|
USERNAME="user" PASSWORD="pword" git annex initremote mega type=external externaltype=mega encryption=shared folder=gitannex
|
|
|
|
git annex describe mega "the mega.co.nz library"
|