summaryrefslogtreecommitdiff
path: root/doc/tips/megaannex.mdwn
diff options
context:
space:
mode:
authorGravatar https://www.google.com/accounts/o8/id?id=AItOawmkBwMWvNKZZCge_YqobCSILPMeK6xbFw8 <TobiasTheViking@web>2014-01-10 14:32:10 +0000
committerGravatar admin <admin@branchable.com>2014-01-10 14:32:10 +0000
commitd6dc57a5e2e31589639b7c8235fcb4fc785d7e22 (patch)
tree061921035ad7df9918e961eaa1b3ff28b8348a10 /doc/tips/megaannex.mdwn
parente58eaa607d3fb90c5a143eb5193ea93e58db20e8 (diff)
Diffstat (limited to 'doc/tips/megaannex.mdwn')
-rw-r--r--doc/tips/megaannex.mdwn38
1 files changed, 13 insertions, 25 deletions
diff --git a/doc/tips/megaannex.mdwn b/doc/tips/megaannex.mdwn
index 8edbf4421..31b0ebec9 100644
--- a/doc/tips/megaannex.mdwn
+++ b/doc/tips/megaannex.mdwn
@@ -1,5 +1,7 @@
-[Megaannex](https://github.com/TobiasTheViking/megaannex)
-is a hook program for git-annex to use mega.co.nz as backend
+megaannex
+=========
+
+Hook program for gitannex to use mega.co.nz as backend
# Requirements:
@@ -7,35 +9,21 @@ is a hook program for git-annex to use mega.co.nz as backend
requests>=0.10
pycrypto
-Credit for the mega api interface goes to:
-<https://github.com/richardasaurus/mega.py>
-
-## Install
+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
-
-Edit the megaannex.conf file. Add your mega.co.nz username, password, and folder name.
-
-## Configuring git-annex
-
- git config annex.mega-hook '/usr/bin/python2 ~/megaannex/megaannex.py'
+This should make a ~/megaannex folder
- git annex initremote mega type=hook hooktype=mega encryption=shared
- git annex describe mega "the mega.co.nz library"
+# Setup
+Make the file executable, and link it into PATH
-## Notes
+ cd ~/megaannex; chmod +x git-annex-remote-mega; sudo ln -sf `pwd`/git-annex-remote-mega /usr/local/bin/git-annex-remote-mega
-You may need to use a different command than "python2", depending
-on your python installation.
+# Commands for gitannex:
--- Tobias
+ 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"