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-20-2020, 01:31 AM   #1
NeHe
Junior Member
NeHe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Android Tablet
Can I have database directory and Library content in different places?

Hi all! Hope you are all safe and healthy.

I have been setting up a small home server and have Calibre running in docker on a small PC. It runs great, but I had to do something during setup I would have preferred to do differently. I was not able to have the library and database directory on a network file system --- I have a NAS that I would like to use to store my content on since it's got lots of storage, is RAID, and also backs up to the cloud.

If I tried to mount that nas into the docker container via CIFS, I can see the files / directories, but the database is never setup correctly and is flagged as corrupt.

When I move the database and content directory to the local filesystem with a docker bind mount it works perfectly. This is where I am now.

However moving all the books (lots of self scanned PDFs, not just ePUBs) to the server directly has cost me all the remaining disk space.

Is it possible to have the database files and the content in stable (i.e. not changing) but different locations? This way I could have say /local/calibre/database/* and /nas/calibre/library/* and would save many gig of disk space on the server.

I do something similar with Plex for my music / video files, the plex database is local, but points to a network mounted content directory.

Thanks!
NeHe is offline   Reply With Quote
Old 11-20-2020, 05:12 AM   #2
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: 16,730
Karma: 19705250
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Not sure if your trying to conserve server or client disk space, but try using the Environment Variable CALIBRE_OVERRIDE_DATABASE_PATH.

BR

Last edited by BetterRed; 11-20-2020 at 05:14 AM.
BetterRed is offline   Reply With Quote
Old 11-20-2020, 01:46 PM   #3
NeHe
Junior Member
NeHe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Android Tablet
BetterRed,

Thanks! That might just do it! Will try. It's that I have, over the years had most of my reference books scanned in as PDFs with OCR support from a local scanning service, so the files are larger than your typical ebook as they are PDFs with page images and OCR metadata -- it's about 30+ gig total, which pushed the 256G SSD in my server over the edge. Ideally I'd have the content on the NAS (which has redundancy, and cloud backup) and the database locally on the server.

This env variable may just do that! Thanks. Have a great day!
NeHe is offline   Reply With Quote
Old 11-22-2020, 05:06 AM   #4
Sunlite
Groupie
Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.Sunlite ought to be getting tired of karma fortunes by now.
 
Sunlite's Avatar
 
Posts: 175
Karma: 202362
Join Date: Mar 2008
Location: Berlin, Germany
Device: Kobo Aura, PRS-T1, PB602, CyBook Gen3
I think you should read this part of the Calibre documentation:

i-am-getting-errors-with-my-calibre-library-on-a-networked-drive-nas

It sounds to me, that you could run into that situation with the way you want to set up Calibre.
Sunlite is offline   Reply With Quote
Old 12-01-2020, 06:19 PM   #5
NeHe
Junior Member
NeHe began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jul 2020
Device: Android Tablet
Thanks everyone! The environment variable solution above worked great.

I read the section on using a share drive for Calibre, but in this case I am the only one with access to the share, and its hosted on a NAS on the same network segment (not a dropbox / Google Drive).

I need to do this to keep the server system light and modular --- it's being moved to a proxmox based VM running docker containers.

The library content is fairly static and I'd like that to reside on the NAS for redundancy (the nas is mirrored to Backblaze cloud backup). I use the Calibre web server for remote access to the content. I'm not expecting to use the share drive for accessing the content outside of Calibre.

IMHO this is a cleaner solution and one also used by other media server applications, such as Plex -- the content is on a NAS drive and the database is local. Beets Music does something similar for music library management.

Thanks everyone! Happy reading.

--Neil.
NeHe is offline   Reply With Quote
Reply

Tags
docker, library, nas

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote add to content server using server directory instead of local directory Velk Server 3 01-03-2019 07:05 AM
Content server on Raspberry Pi. Move database error aerospyke Library Management 5 06-02-2016 10:42 AM
one library 2 places Ackhughes Library Management 5 06-11-2013 03:47 AM
Calibre-portable default library directory dinya Library Management 2 10-18-2012 01:18 PM
Adding books already in library directory but not library database sfguy5874 Library Management 1 07-07-2012 05:33 AM


All times are GMT -4. The time now is 09:59 PM.


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