Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 03-24-2012, 04:37 PM   #1
OakdaleMike
Enthusiast
OakdaleMike doesn't litterOakdaleMike doesn't litter
 
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?
OakdaleMike is offline   Reply With Quote
Old 03-24-2012, 08:17 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by OakdaleMike View Post
(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?
Have you tried using the new auto add folder?
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
theducks is offline   Reply With Quote
Advert
Old 03-24-2012, 08:39 PM   #3
tedpeer
Enthusiast
tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.tedpeer can program the VCR without an owner's manual.
 
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
tedpeer is offline   Reply With Quote
Old 03-25-2012, 10:21 AM   #4
OakdaleMike
Enthusiast
OakdaleMike doesn't litterOakdaleMike doesn't litter
 
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.
OakdaleMike is offline   Reply With Quote
Old 03-25-2012, 10:34 AM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by OakdaleMike View Post
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?
If it is already IN Calibre, why are you adding it (an why is it not showing in the Content server)?


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 If merge is enabled, it should (usually) update the existing book

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
theducks is offline   Reply With Quote
Advert
Old 03-25-2012, 11:14 PM   #6
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by OakdaleMike View Post
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.
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.
DoctorOhh is offline   Reply With Quote
Old 03-25-2012, 11:15 PM   #7
OakdaleMike
Enthusiast
OakdaleMike doesn't litterOakdaleMike doesn't litter
 
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...
OakdaleMike is offline   Reply With Quote
Old 03-25-2012, 11:49 PM   #8
OakdaleMike
Enthusiast
OakdaleMike doesn't litterOakdaleMike doesn't litter
 
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!
OakdaleMike is offline   Reply With Quote
Old 03-26-2012, 12:05 AM   #9
DoctorOhh
US Navy, Retired
DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.DoctorOhh ought to be getting tired of karma fortunes by now.
 
DoctorOhh's Avatar
 
Posts: 9,864
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Nexus 7
Quote:
Originally Posted by OakdaleMike View Post
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...
If you used the Binary install outlined on calibre's download page instead of the unsupported (by calibre or this forum) repository version you would be using the most up to date version of calibre.
DoctorOhh is offline   Reply With Quote
Old 03-26-2012, 10:03 AM   #10
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by OakdaleMike View Post
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!
Forget ever using the Repository version of Calibre. It is weeks out of date when the release of FIRST appears and is over 6 months old by the time the next release of Ubuntu.
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
theducks is offline   Reply With Quote
Old 03-30-2012, 07:56 PM   #11
OakdaleMike
Enthusiast
OakdaleMike doesn't litterOakdaleMike doesn't litter
 
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
OakdaleMike is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 03:42 AM.


MobileRead.com is a privately owned, operated and funded community.