2013-05-22 21:26:19 +00:00
|
|
|
Hook program for gitannex to use flickr as backend.
|
|
|
|
|
|
|
|
This allows storing any type of file on flickr, not only images and movies.
|
2013-05-22 20:42:13 +00:00
|
|
|
|
|
|
|
# Requirements:
|
|
|
|
|
|
|
|
python2
|
|
|
|
|
2013-05-22 21:26:19 +00:00
|
|
|
Credit for the flickr api interface goes to: <http://stuvel.eu/flickrapi>
|
|
|
|
Credit for the png library goes to: <https://github.com/drj11/pypng>
|
|
|
|
Credit for the png tEXt patch goes to: <https://code.google.com/p/pypng/issues/detail?id=65>
|
2013-05-22 20:42:13 +00:00
|
|
|
|
|
|
|
## Install
|
2013-05-22 21:26:19 +00:00
|
|
|
|
2013-05-22 20:42:13 +00:00
|
|
|
Clone the git repository in your home folder.
|
|
|
|
|
|
|
|
git clone git://github.com/TobiasTheViking/flickrannex.git
|
|
|
|
|
|
|
|
This should make a ~/flickrannex folder
|
|
|
|
|
|
|
|
## Setup
|
2013-05-22 21:26:19 +00:00
|
|
|
|
2013-05-22 22:33:29 +00:00
|
|
|
Run the program once to set it up.
|
2013-05-22 20:42:13 +00:00
|
|
|
|
|
|
|
cd ~/flickrannex; python2 flickrannex.py
|
|
|
|
|
2013-05-22 22:33:29 +00:00
|
|
|
After the setup has finished, it will print the git-annex configure lines.
|
2013-05-22 20:42:13 +00:00
|
|
|
|
2013-05-22 23:10:23 +00:00
|
|
|
## Configuring git-annex
|
|
|
|
|
|
|
|
git config annex.flickr-hook '/usr/bin/python2 ~/flickrannex/flickrannex.py'
|
|
|
|
git annex initremote flickr type=hook hooktype=flickr encryption=shared
|
|
|
|
git annex describe flickr "the flickr library"
|
|
|
|
|
2013-05-22 20:42:13 +00:00
|
|
|
## Notes
|
2013-05-22 21:26:19 +00:00
|
|
|
|
2013-05-22 22:33:29 +00:00
|
|
|
### Unencrypted mode
|
|
|
|
|
2013-05-22 23:13:16 +00:00
|
|
|
The photo name on flickr is currently the [[key|backends]] used by git-annex.
|
2013-05-22 22:33:29 +00:00
|
|
|
|
|
|
|
### Encrypted mode
|
2013-05-22 20:42:13 +00:00
|
|
|
|
2013-05-22 23:13:16 +00:00
|
|
|
The current version base64 encodes all the data, which results in ~35%
|
|
|
|
larger filesize.
|
|
|
|
|
|
|
|
I might look into yyenc instead. I'm not sure if it will work in the tEXt
|
|
|
|
field.
|
2013-05-22 21:26:19 +00:00
|
|
|
|
|
|
|
-- Tobias
|