11-13-2012, 06:23 PM | #1 |
Member
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
|
Use calibre to manage remote calibre library
I've got a simple setup going, and it's pretty much almost ready. There's only one thing missing, and that's simple management.
I've got a webserver, which I have (currently open for testing) secured with usernames and passwords, and can access from my android products as well as my e-readers (My wife and I have one each). It's running a calibre content server encapsulated in apache. Pretty straight forward stuff. What I have on my desktop is Calibre client running. I start it, I adjust e-books, edit meta-data, etc... then I want to send it to my "device", which is the remote library. This is all pretty much possible, except that the "Connect to folder" feature doesn't update the metadata.db file. How can I configure the Desktop Calibre client to update the metadata.db file? If I can't configure the Desktop Calibre client to update the metadata.db file, is it possible to make this a feature request? Presumably calibre knows how to update this file, and a locking facility can easily be instituted. This is the last piece to turn the integrated server into an awesome all-in-one solution around calibre for me, and others I'm sure! |
11-13-2012, 08:11 PM | #2 | |
Well trained by Cats
Posts: 30,346
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
2 choices (off the top of me head). 1) set up an Auto ADD folder on the server. Drop the NEW book there. ( I don't think this can be used to update an existing book) 2) VNC and remote control your Calibre. 2.5) rlogin and use the CLI fo GUI-less servers |
|
Advert | |
|
11-14-2012, 01:44 AM | #3 |
Member
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
|
Obviously there are more difficult and convoluted solutions. I'm looking to find some way to see calibre libraries through to their logical, simple conclusion, not to make things more complicated than they need to be.
Obviously, this so called "Library" exists only as the data I've exported to it, and in no other way. I think the Python wsgi server filled in some extra details that I never explicitly asked it to. The fact remains that the sole purpose of it's existence is for a single user at a time to connect, export books to, and have those books show up on the wsgi server's opds feed the next time I open it on my phone, tablet, or reader. I do believe I asked, that if the functionality doesn't presently exist that it be added as a new feature (request) in some way. Finally; never, I repeat NEVER, use rlogin. NEVER. Never ever ever. Use SSH instead. rlogin is BAD. |
11-14-2012, 03:23 AM | #4 | |
Grand Sorcerer
Posts: 11,928
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
One "trick": because the calibre server holds metadata.db open, which in some situations can cause dropbox collisions. In addition, because of how linux holds files open even when deleted, the calibre servers never see library (metadata.db) updates. To get around this I use monit to monitor the timestamp on metadata.db. If it changes, then monit restarts the calibre server (init.d/calibre-server). The calibre init.d script stops calibre, copies metadata.db to somewhere not in dropbox-land, sets $CALIBRE_OVERRIDE_DATABASE_PATH to that file, and then restarts calibre. As for adding something like a transport to calibre, I strongly suspect that it isn't going to happen. I know that I have no interest in building it. There are already many ways to copy a library from A to B. Calibre doesn't need to provide another one. There is a long-running project to separate calibre into clients with a separate db server, but this won't finish anytime soon. |
|
12-02-2012, 03:25 PM | #5 | |
Zealot
Posts: 136
Karma: 60
Join Date: Jul 2009
Location: Munich, Germany
Device: Nook Classic rooted; Galaxy S IV with Aldiko, other older devices
|
Quote:
The following does not work correctly for me (yet): Code:
check file metadata.db with path /home/calibre/Dropbox/Calibre/metadata.db if timestamp > 5 minutes then exec "/etc/init.d/calibre-server restart" |
|
Advert | |
|
12-02-2012, 03:36 PM | #6 | |
Grand Sorcerer
Posts: 11,928
Karma: 7208979
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Code:
check file metadata.db with path ..../metadata.db if changed timestamp then exec "/etc/init.d/calibre-server restart" |
|
12-07-2012, 01:07 AM | #7 |
Member
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
|
None of this helps with the fact that I don't want to have an exact copy of my desktop's library, but rather I want to push books to and from it like a device, maintaining only the books and series that are
1) in good condition, and 2) that I'm interested and reading for 3) Multiple users with both read&write access (provided through separate access points) |
12-07-2012, 09:16 AM | #8 | |
Well trained by Cats
Posts: 30,346
Karma: 58032210
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
point 3 Excludes Calibre which is SINGLE USER Write access (And Calibre could not care about points 1 or 2, as long as the structure is valid ) |
|
04-06-2013, 01:40 AM | #9 |
Member
Posts: 23
Karma: 10
Join Date: Mar 2010
Device: iphone/stanza
|
It's been a while and perhaps something has changed since then. Is it yet possible to manage a remote calibre library as described above, and if not, I would like to re-request that the feature be added. There now exist a small number of programs capable of using an in-tact calibre library to create a OPDS catalog, and all are using hacks such as rsync or monit or dropbox to make them function. This is an important feature that is presently lacking.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Manage Collections in Calibre (Help!) | FatCat0 | Sony Reader | 19 | 08-11-2012 12:00 PM |
Calibre to manage small private school library | mmmtcm4 | Library Management | 1 | 01-05-2012 09:54 PM |
Remote Calibre Backup? | jamng | Related Tools | 3 | 12-09-2011 08:50 AM |
Development Using Calibre to manage eDGe library | mrspaceman | enTourage Archive | 76 | 05-12-2011 12:38 PM |
Calibre kills remote NX session... | Egnaled Knarf | Calibre | 2 | 01-28-2010 05:51 PM |