![]() |
#1 |
Enthusiast
![]() ![]() Posts: 38
Karma: 110
Join Date: Apr 2009
Location: Oakdale, CA
Device: PRS-900, rooted Nook Color
|
Calibre webserver and Dropbox
(Sorry if this has been discussed. The Search feature doesn't find anything.)
The combination of Calibre's webserver and Dropbox is formidable! I'm running the webserver on an up-to-date Ubuntu box that is up 24x7 anyway, so it's a natural to serve up my books. However, I'm away from home a lot (a lot!) and I often add books to my library while I'm on the road, using my laptop. They, of course, are then immediately available on all my devices via Dropbox. However, the Calibre Library app on my phone and tablet doesn't benefit because the Calibre running at home doesn't know the database has changed. Once I get home, I just close and restart Calibre and all is good. Has anybody discovered a method or work-around to get a remote Calibre webserver to re-sync? |
![]() |
![]() |
![]() |
#2 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Remember, to place a COPY into the folder if you want a backup of the original as once added, the contents of the folder is purged |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Enthusiast
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 32
Karma: 186012
Join Date: Jul 2011
Device: nook, iOs
|
You could set a task to run every day at say midnight that would shut down calibre and another to run at 12:02 to start calibre.
Ted |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() ![]() Posts: 38
Karma: 110
Join Date: Apr 2009
Location: Oakdale, CA
Device: PRS-900, rooted Nook Color
|
theducks: It's not clear to me how I could use auto add for a book that's already in the Calibre database, which is the case I'm trying to work. I guess I could copy the epub somewhere on my laptop, delete the book, SCP it to the Ubuntu box (into a local auto add folder), and let the remote Calibre do its thing. Is that what you were thinking?
tedpeer: Nice. Simple. Should work. (I can't believe I didn't think of it before I asked). I'll give it a shot. The only downside is I have to wait until morning to see my new book on the webserver. |
![]() |
![]() |
![]() |
#5 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() I was thinking of using a dedicated Dropbox folder (Will dropbox allow a folder that does not exist on the server?) as the Auto-add folder. You could drop a book there from any location and Calibre would slurp it up ![]() Note: I don't use Dropbox (or trust any cloud service) and my content server only gets started when my wife needs a reload on the K4NT ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
You could do your editing in a different library then when it is ready for prime time you could drop in in the auto-add folder for your content server library.
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() ![]() Posts: 38
Karma: 110
Join Date: Apr 2009
Location: Oakdale, CA
Device: PRS-900, rooted Nook Color
|
theducks: I run Calibre on multiple computers, but leave it running on one in my office. The issue is that when I update my Calibre database from, e.g., my laptop, it updates the "master" folder on Dropbox instantly, but the already running instance of Calibre doesn't know that. If I soon thereafter let this webserving Calibre update by adding a book that's already there, I fear for the integrity of the database. It might work, but I was afraid to try it. I didn't know about this "merge" function, though...
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() ![]() Posts: 38
Karma: 110
Join Date: Apr 2009
Location: Oakdale, CA
Device: PRS-900, rooted Nook Color
|
OK, I played around with Auto Add using a separate Dropbox folder and it appears to indeed be a very simple solution. As dwnathny points out, one can use a separate, "temporary" library while preparing the book, then switch back to the main library, and copy the new ebook into the auto add folder.
However, the current version of Calibre on Ubuntu 11.10 does not include this feature. Hopefully, the imminent 12.04 will have a sufficiently new version... Thanks for all the great ideas, folks! |
![]() |
![]() |
![]() |
#9 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
I added the command line Update string to a custom Launcher on the (Systems) Menu (even works in Unity). a single click, a Password for Sudo, and another Enter to accept the default: /opt |
|
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() ![]() Posts: 38
Karma: 110
Join Date: Apr 2009
Location: Oakdale, CA
Device: PRS-900, rooted Nook Color
|
I hate it when a thread like this doesn't conclude, so:
I followed dwanthny's advice above, and installed the Calibre binary for Linux on my Ubuntu office desktop. Unlike a couple of year's ago, when Kovid tried to help me and we both gave it up, it works without a hitch now. I set up this new version to Auto Add books from a separate Dropbox folder that I set up for the purpose. I also followed his earlier suggestion and (on my laptop, not the webserving Calibre in my home office) temporarily changed the Calibre library to an empty folder set up for the purpose and added a couple of books, fixed up the metadata and converted them. Then I copied the epub files to the Dropbox Auto Add folder. I noticed that a few moments later, the folder was indeed empty. Pulled out my phone, opened Calibre Library, and found the new books! Slick. PS: Well, if you follow my approach, please be careful. There are a number of warnings in this forum about using Dropbox and having multiple copies of Calibre open simultaneously. The way I'm operating, I violate this principle. I did, in fact, do some damage to my database -- all my epubs were still in my Dropbox folder, but Calibre didn't know about a few of the most recent. I repaired the situation by Auto Adding the missing books, one at a time. I think it's OK to have two instances of Calibre running on two different computers only if you are very careful to be sure that Dropbox has completed syncing before you open the local copy (and to make sure sync has completed before you shut down that computer). My plan is to switch all but the webserving Calibre to a non-Dropbox local folder and avoid this issue. I'll still have local copies of all my books, thanks to the Dropbox sync feature and I can still use a local Calibre to add books using the above procedure. Last edited by OakdaleMike; 04-02-2012 at 12:29 AM. Reason: New info |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre Library in Dropbox | GeckoFriend | Library Management | 3 | 02-22-2012 04:07 PM |
How to use Dropbox with Calibre | BAD18 | Related Tools | 5 | 11-09-2011 08:52 AM |
Apple Tries To Acquire Dropbox for $800 Million, Dropbox Refuses | jocampo | News | 166 | 09-17-2011 02:06 PM |
Using dropbox and Calibre | totaltech | Related Tools | 7 | 04-29-2011 02:28 PM |
Calibre webserver issue with text formatting | OldNESJunkie | Calibre | 3 | 12-20-2010 06:56 PM |