01-12-2020, 01:04 PM | #1 |
Connoisseur
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
|
Calibredb with DropBox?
I've been keeping my ebooks in Calibre for many years, running it on a series of Linux boxes.
I've always run calibre.service and configured ports through my firewall so I could connect Calibre Companion to my Calibre repository from wherever I might be. On my Linux desktop I've configured my menus to run scripts that shutdown calibre.service, run the Calibre UI, then start calibre.service back up. I've just finished moving my KeePass database to DropBox, and I'm thinking about whether to move my Calibre repository to Dropbox, as well. There's one critical function I've not been about to do from Calibre Companion, and that's to add new books from my mobile device. What I've been doing, instead, is to use sftp to copy the file from my mobile to my Linux server, to ssh onto my Linux server, then using calibredb to add the book to my library. (I have a script that stops and restarts Calibre.service). But how would all this work if I was using Dropbox? Dropbox shares files, it doesn't run services. So I'd expect the Calibre UI on my desktops and the Caliber Companions on my decides to access the files directly. So I'd not be running calibre.service at all. But it's there a way to run calibredb to add books to a Calibre repository on Dropbox? |
01-12-2020, 09:06 PM | #2 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the calibre content server and you can add books, read them, edit their metadata etc directly in your browser on your mobile device. As for using calibredb with dropbox, calibredb does not care what your library is stored in as long as it is available as files on the disk, or via the content server (calibredb can connect directly to the content server)
|
01-12-2020, 11:14 PM | #3 |
Connoisseur
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
|
Which is the Calibre content server?
Calibre-server? |
01-13-2020, 12:03 AM | #4 |
creator of calibre
Posts: 43,856
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
01-13-2020, 02:07 PM | #5 |
Connoisseur
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
|
You mean the Content Server option within the Calibre UI?
That's of no use to me at all. If I'm sitting in the lobby of a hotel, out of town, and decide I want to read a book that I've loaded into my Calibre repository, I'm not going to go back home, start the UI, and click the "Connect/share" button. So I have calibre-server configured to run at start, as a background service, so it's up and running regardless of whether anyone is logged into the computer. When I set this up, it was not possible to run both the Calibre UI and calibre-server at the same time, against the same repository, which is why I've been using a script to shutdown the server when I started the UI, and to start it back up on exit. I'm doing the same with calibredb, because when I set it up I didn't see how to get it to talk to the server. Though from the documentation it looks like this is now possible. But none of this is relevant to my question. Calibre Companion has supported, for some time, a "Cloud" option, where you put your Calibre repository in a file sharing service like DropBox. I'm considering using this, instead of calibre-server. But for this, I'd want to be able to run the Calibre UI against the file sharing service, and to be able to use calibredb to add books to the repository on DropBox. DropBox mounts a directory in the local filesystem that mirrors the shared files. Changes to files within this directory are synced with the shared files on DropBox. So it's clear to me that I could run both the Calibre UI and calibredb against this directory - but it's not clear that I'd not get consistency issues, as DropBox syncs the underlying files without knowing where the transaction boundaries are. Is this something you've experimented with? Any particular advice? |
01-13-2020, 03:16 PM | #6 | |
Bibliophagist
Posts: 35,393
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
A couple of people have reported success by stopping Dropbox sync, running calibre and restarting Dropbox sync after exiting calibre. However with calibre server being able to modify the database, you would need to stop Dropbox syncing before launching the server which defeats the point of the exercise. My solution was to run calibre server on my local machine/library using NATting on the router to allow access to calibre server from an external address. You might want to check the calibre FAQs for I am getting errors with my calibre library on a networked drive/NAS? for more information. |
|
01-13-2020, 03:25 PM | #7 |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
You can forget about being able to do new stuff via calibre companion, because calibre companion access to Dropbox for new devices is broken and new developer has no intention of fixing it.
But have you considered setting up a folder in Dropbox which is configured as an add books folder for calibre, so anything you upload to that folder, from any device with Dropbox access, will be synced by Dropbox to the local folders of the device where calibre is running, and thus auto added to calibre It should be possible to tell calibre that C:\myuseraccount\dropbox\intake. Or whatever is an auto add folder, and any Dropbox app or logged in browser can write to it |
01-13-2020, 03:56 PM | #8 |
Connoisseur
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
|
I was wondering if I could eliminate the need to keep my Linux system running. It looks as if I cannot.
|
01-13-2020, 04:00 PM | #9 | |
Connoisseur
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
|
Quote:
But using DropBox as an auto-add sounds like it'd be easier. I'm in the middle of configuring a new Linux box, and moving services over from the old, which is why I'm revisiting it. It looks like I'll be keeping my same structured with respect to Calibre. Thanks, everyone, for the ideas and help. |
|
01-14-2020, 01:50 AM | #10 | |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
Quote:
but does linux have a wake on LAN or similar option so that you could remotely start it over internet with correct credentials and knowlegde of network card MAC, log in, do stuff, close it? if like me, you don't actually power OFF, just leave it sleeping, then remote wake may be possible |
|
01-14-2020, 02:13 AM | #11 |
Connoisseur
Posts: 65
Karma: 10
Join Date: May 2011
Device: Samsung Tablet
|
My Linux box in running around the clock, except that it's actually a virtual, running on a Linux host, and the combination doesn't reliably restart after a power failure.
|
01-16-2020, 01:22 PM | #12 |
Leftcoast, USA
Posts: 38
Karma: 500010
Join Date: Dec 2012
Location: SF Bay Area
Device: Pixel 2 XL, Basic Kindle
|
I keep a copy of my Calibre library on Dropbox. My real library is on my local system, and I have a simple rsync script to make the Dropbox library the same as my local library, so anyone can do anything to the Dropbox library, and it will get fixed next time I run the rsync.
I use Calibre Companion on my Android phone, and it works very well. There was a problem a while back with new installs of the app, which I ran into when I got a new phone, but there has been a workaround published way back that worked fine for me - unless there is a new problem that I don't know about. If you share you library, you need to be slightly careful about writing to it from more than one user. Mine is not often written to by others, and I've never had a problem except when a friend who didn't know what he was doing somehow erased all the books. Good think I had my copy. That's why I do the rsync all the time to add books. Nobody else should be adding books without telling me, but my rsync command first does a dry run, so I can see what changes will be made. |
01-16-2020, 02:13 PM | #13 |
Wizard
Posts: 3,305
Karma: 10259306
Join Date: May 2016
Device: kobo forma, Kobo Libra, Huawei media Tab, fire HD10, PW3 HDX8.9,
|
The Dropbox workaround only works for Gmail logins. I can't use that as my Gmail is linked to a different much smaller Dropbox, too small for my calibre library.
Trouble is that cc does not work well with other cloud solutions. Amazon dropped support, I could not get Google drive to work... Pcloud is not supported. The whole cloud area needs an overhaul but I feel it will never happen I agree that the android app is fine for connecting to a pc running calibre. But if the new developer tries to enforce a subsription model I will do without it Last edited by stumped; 01-16-2020 at 02:15 PM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help - adding Dropbox folder filled up DropBox! | steveparry | Library Management | 3 | 12-01-2019 12:25 PM |
Calibredb search | iomari | Calibre | 4 | 04-16-2019 11:58 AM |
calibredb list | iomari | Calibre | 9 | 10-12-2011 11:30 AM |
calibredb | iomari | Calibre | 6 | 10-10-2011 08:35 AM |
Apple Tries To Acquire Dropbox for $800 Million, Dropbox Refuses | jocampo | News | 166 | 09-17-2011 02:06 PM |