calibre ebook library manager / calibredb
For managing my ebooks, I started to use calibre , and it turns out, calibre is a very flexible tool.
I am able to run it on my raspberry pi as a quite nice web app. Have a look at calibre-server . It is possible to "talk" to the library database with a command line interface called calibredb . With this, it is really easy to import/export/search stuff without using the usual GUI. callibredb allows you to create entirely new database, as well. If you are using tmpfs for /tmp and your memory is limited, set TMPDIR before you start.
$ export TMPDIR=/BIG_DISK/tmp
$ calibredb add -r /home/mpd/new_ebooks/ /BIG_DISK/calibre_library/
As another quite nice feature, calibre is able to convert from different formats to another. It is easily possible to convert a pdf to mobi - for example Sage A. Weils more than great thesis ceph - and read it on the kindle.
And there is a lot more. Give it a try :)