git-annex/doc/tips/megaannex.mdwn

42 lines
957 B
Text
Raw Normal View History

2013-05-21 17:28:09 +00:00
[Megaannex](https://github.com/TobiasTheViking/megaannex)
is a hook program for git-annex to use mega.co.nz as backend
# Requirements:
2013-05-21 18:35:32 +00:00
python2
2013-05-21 17:28:09 +00:00
requests>=0.10
pycrypto
Credit for the mega api interface goes to:
<https://github.com/richardasaurus/mega.py>
## Install
Clone the git repository in your home folder.
git clone git://github.com/TobiasTheViking/megaannex.git
This should make a ~/megannex folder
## Setup
Run the program once to make an empty config file.
cd ~/megaannex; python2 megaannex.py
2013-05-22 06:44:01 +00:00
Edit the megaannex.conf file. Add your mega.co.nz username, password, and folder name.
2013-05-21 17:28:09 +00:00
## Configuring git-annex
2013-05-22 06:40:33 +00:00
git config annex.mega-hook '/usr/bin/python2 ~/megaannex/megaannex.py'
2013-05-21 17:28:09 +00:00
git annex initremote mega type=hook hooktype=mega encryption=shared
2013-05-21 17:32:01 +00:00
git annex describe mega "the mega.co.nz library"
2013-05-21 17:28:09 +00:00
## Notes
You may need to use a different command than "python2", depending
on your python installation.
-- Tobias