lift megaannex comment into tip, etc
This commit is contained in:
parent
25dba9da24
commit
ceb600d715
4 changed files with 51 additions and 0 deletions
|
@ -16,5 +16,8 @@ More should be added, such as:
|
|||
* Mediafire provides 50gb free and has a REST API.
|
||||
* Flickr provides 1 tb (!!!!) to free accounts, and can store at least
|
||||
photos and videos.
|
||||
* mega.co.nz. Already supported via [[tips/megaannex]], would just need
|
||||
webapp modifications to configure it. May want to use megaannex as-is to
|
||||
build a non-hook special remote in haskell.
|
||||
|
||||
See poll at [[polls/prioritizing_special_remotes]].
|
||||
|
|
|
@ -26,6 +26,7 @@ for various cloud things:
|
|||
* [[tips/Internet_Archive_via_S3]]
|
||||
* [[tahoe-lafs|forum/tips:_special__95__remotes__47__hook_with_tahoe-lafs]]
|
||||
* [[tips/using_box.com_as_a_special_remote]]
|
||||
* [[tips/using_mega.co.nz_as_a_special_remote|tips/megaannex]]
|
||||
* [[forum/special_remote_for_IMAP]]
|
||||
* [[forum/nntp__47__usenet special remote]]
|
||||
|
||||
|
|
45
doc/tips/megaannex.mdwn
Normal file
45
doc/tips/megaannex.mdwn
Normal file
|
@ -0,0 +1,45 @@
|
|||
[Megaannex](https://github.com/TobiasTheViking/megaannex)
|
||||
is a hook program for git-annex to use mega.co.nz as backend
|
||||
|
||||
# Requirements:
|
||||
|
||||
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
|
||||
|
||||
Edit the megaannex.conf file. Add your mega.co.nz username and password
|
||||
|
||||
Note: The folder option in the megaannex.conf file isn't yet used.
|
||||
|
||||
## Configuring git-annex
|
||||
|
||||
git config annex.mega-store-hook 'python2 ~/megaannex/megaannex.py store --subject $ANNEX_KEY --file $ANNEX_FILE'
|
||||
git config annex.mega-retrieve-hook 'python2 ~/megaannex/megaannex.py getfile --subject $ANNEX_KEY --file $ANNEX_FILE'
|
||||
git config annex.mega-checkpresent-hook 'python2 ~/megaannex/megaannex.py fileexists --subject $ANNEX_KEY'
|
||||
git config annex.mega-remove-hook 'python2 ~/megaannex/megaannex.py delete --subject $ANNEX_KEY'
|
||||
|
||||
git annex initremote mega type=hook hooktype=mega encryption=shared
|
||||
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
|
|
@ -1 +1,3 @@
|
|||
mega.co.nz has 50gb for free accounts. They also have an API, so I guess it wouldn't be too hard to use it as a special remote.
|
||||
|
||||
[[done]], see [[tips/megaannex]].
|
||||
|
|
Loading…
Add table
Reference in a new issue