![]() |
#1 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
See CALIBRE_OVERRIDE_DATABASE_PATH https://manual.calibre-ebook.com/cus...ment-variables
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() 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? |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() 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? |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,345
Karma: 27182818
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
|
![]() |
![]() |
![]() |
#7 |
Enthusiast
![]() Posts: 37
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! |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |