Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 09-20-2017, 08:48 AM   #1
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Question Advise on Calibre installation on NAS (synology 415+)

Hi,
I did some search, but I'm quite confused about what is considered "best practice".

I used Calibre to store my collection of eBooks under windows.

Now I'm moving unto a (home) networked environment mainly based on my NAS and several computers, mainly running Linux, I also have a couple of kindles.

I would like to move all my database to NAS (which is backupped), but I read this is not the "advised" configuration.
  • I am ok to maintain (add/remove/edit_metadata) from a single location.
  • It would be OK to maintain directly from NAS, but it is headless (accessible either via web or ssh).
  • My specific NAS is Intel-based (4core Atom).
  • Other PC's should be able to browse book list and to download for local reading.
  • I'm aware of two "plugins" for my NAS which seem Calibre-related (BicBucStrim and COPS), but it's unclear to me their actual usage.
  • I would like to avoid duplication of my (large) collection.

Can someone point me in the right direction, please?

(note: I'm a programmer and i have a long Linux experience, so compilation/code-modification doesn't scare me, I just would like to avoid wasting my ample spare time reinventing the wheel)
ZioNemo is offline   Reply With Quote
Old 09-20-2017, 09:28 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 35,468
Karma: 12737927
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Keep your master calibre library on a desktop machine. Write a script that launches calibre and when calibre quits, rsyncs the library to the NAS server and restarts the calibre-server process on the NAS server.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-20-2017, 10:09 AM   #3
darryl
Wizard
darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.darryl ought to be getting tired of karma fortunes by now.
 
darryl's Avatar
 
Posts: 2,905
Karma: 58015962
Join Date: Nov 2011
Location: Australia
Device: Kobo Aura H2O, Kindle Oasis, Huwei Ascend Mate 7
You should of course follow Kovid's good advice. Having said that, I myself am somewhat hypocritical. I have been keeping my Calibre Database on an NFS share on my QNAP NAS for years without a problem. I run Calibre mainly on one particular Linux Box, but I do have it installed on others. I also backup the whole calibre directory including the database files regularly to a local machine via rsync, and keep separate backups of several versions of the database files. Problems are typically with corruption of the database rather than damage to the actual book files and directories. Having the database on an NAS is not supported and frequently does lead to problems, though I haven't experienced any significant ones personally. If you do run the database on the NAS it is better to run Calibre only on Linux machines or Windows ones. Mixing them frequently leads to problems. As mentioned, I always use NFS shares rather than CIFS, though people do use CIFS shares also. I also run COPS which I use to access my books from ereaders, phones and the odd windows machine when I really must.

People do this with mixed success. If you want to try it you do so at your own risk and have no right to whinge if things go wrong. Keeping a backup of everything is a must. Murphy's law frequently comes into play, though sometimes I almost believe that it is more likely to come into play when you don't have a good backup.
darryl is offline   Reply With Quote
Old 09-20-2017, 10:19 AM   #4
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Thanks Kovid,
if I get You right You are suggesting to:
* Keep all my library on a "normal" PC.
* Keep a working server on NAS.
* rsync (or otherwise copy/syncronize) PC copy with NAS copy.
* Actually Calibre workflow *on PC* should be:
** stop server on NAS
** launch full Calibre on PC
** edit as needed (on PC)
** rsync PC -> NAS
** restart server on NAS

I do not understand a few things:
* why can't I keep all Lib on NAS and do the same workflow as before without needing to rsync?
* in this setup what if I need a different format? Will NAS server perform required conversion?
* can server handle USB devices (i.e.: kindle)? if so: how? They would be attached to a PC.
* as NAS is the only thing on 24/7, wouldn't be easier to run server+web-frontend there?

TiA!
ZioNemo is offline   Reply With Quote
Old 09-20-2017, 10:28 AM   #5
ZioNemo
Enthusiast
ZioNemo began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Mar 2008
Device: HTC-p3000
Thanks darryl.
Understood.

I fail to understand why DB locking seems so difficult (I do routinely access databases, even embedded SQLite, from multiple sources at the same time with no adverse effects) to have a full reentrance, but that's probably just my fault.

As said I do *not* plan to access a full Calibre concurrently at all.
I could also put in place some failsafe to avoid concurrent access "by mistake".

In all cases my full NAS is backed up on another one *and* on a cloud (better safe than sorry
ZioNemo is offline   Reply With Quote
Advert
Old 09-20-2017, 06:39 PM   #6
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 14,904
Karma: 12631370
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@ZioNemo - FYI ==>> calibre server TODOs

BR
BetterRed is offline   Reply With Quote
Reply

Tags
nas, server, web access

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre on multiple computers while running server on a Synology NAS irishtexmex Calibre 0 07-12-2017 11:11 AM
Calibre on a Mac and chronosync issue with a Synology NAS hugoheitz Devices 0 05-04-2017 07:01 AM
Calibre Cloud Pro & Synology NAS Togsie Related Tools 2 04-29-2015 07:53 PM
Calibre with Synology NAS Johan1974 Devices 7 10-17-2013 06:24 PM


All times are GMT -4. The time now is 12:49 PM.


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