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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 11-30-2017, 07:57 AM   #1
noddy
Junior Member
noddy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2017
Device: none
An idea for calibre on NAS

I need to store my library on my NAS because...

A/ It's getting too big for my desktop
B/ My NAS is always on so I can access my books via one of the many calibre server Docker images.

I appreciate there are many posts saying a DB on a remote share is a big no no for Calibre so I propose this solution.

1 Run the Calibre client and DB on the desktop as normal
2 Change the book saving pattern from <author>/<title> to books/<author>/<title>
3 symlink books folder to the NAS by using mklink or ln depending on OS.
4 Assuming calibre server needs the db as well, run an rsync type job to mirror the sqlite files to the NAS whenever calibre desktop closes. You could do this manually or automatically

This would store the part that takes all the disk space on the NAS but keep the bits that need exclusive access local.

Would this approach work? Thoughts?
noddy is offline   Reply With Quote
Advert
Old 11-30-2017, 10:23 PM   #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: 32,880
Karma: 10034422
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
See CALIBRE_OVERRIDE_DATABASE_PATH https://manual.calibre-ebook.com/cus...ment-variables
kovidgoyal is online now   Reply With Quote
Old 12-01-2017, 05:49 AM   #3
noddy
Junior Member
noddy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2017
Device: none
Thank you for that info!

How would that work with multiple library? Can I somehow specify a different path for each library?
noddy is offline   Reply With Quote
Old 12-01-2017, 05:52 AM   #4
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: 32,880
Karma: 10034422
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, you use it only with a single library. You need to switch libraries restart calibre with a different value for that env var. Which you can do by creating scripts/shortcuts to launch calibre.
kovidgoyal is online now   Reply With Quote
Old 12-07-2017, 05:15 AM   #5
noddy
Junior Member
noddy began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Nov 2017
Device: none

OK thanks I'll give that ago, my plan is ...

1 move database from the NAS to c:\cablibreDBs\library1
2 set CALIBRE_OVERRIDE_DATABASE_PATH to above location
3 open Calibre

Is that the right way of doing this?
noddy is offline   Reply With Quote
Advert
Old 12-07-2017, 05:25 AM   #6
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: 32,880
Karma: 10034422
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No you put your library on the NAS, then copy out the metadata.db file from the library to an internal hard disk and set the env var to point to metadata.db
kovidgoyal is online now   Reply With Quote
Old 04-08-2018, 04:23 PM   #7
Pachuqismo
Member
Pachuqismo began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Nov 2009
Device: SM-T820, Galaxy S7
@noddy

On my NAS4Free (N4F) I am using COPS (Calibre OPDS) and it works great, since any device browser on my LAN has access to the library.

Check out this thread here in Mobileread and COPS : Calibre OPDS (and HTML) PHP Server.

My Calibre library is on my desktop with a backup on the N4F, which is always available. I use WinSCP to synchronize/backup my desktop Calibre to the NAS.

Cheers!
Pachuqismo is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems Calibre on a new NAS Liefhebber Devices 7 01-31-2016 01:30 PM
Calibre with Synology NAS Johan1974 Devices 7 10-17-2013 05:24 PM
Compiling Calibre on NAS Yancoucou Devices 3 01-14-2012 05:11 PM
Using Calibre on a NAS Shawn_KY Calibre 9 01-07-2011 01:24 AM


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


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