Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-10-2026, 06:01 AM   #1
ufasoli
Member
ufasoli began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2009
Location: Thonon-les-Bains, France
Device: Kobo Libra Colour
Location of new books

Hi,
Sorry if this specific question has been asked before but I cannot find the use case.

I have my ebook files in a NAS server:
Code:
/nas/data/ebooks
and I have configured my calibre instance to point to the library
Code:
metadata.db
in my local computer (~/Library/Preferences/calibre/macos-env.txt):

Code:
CALIBRE_OVERRIDE_DATABASE_PATH=/Calibre/metadata.db
This works pretty well as the database library is in the local disk whereas the ebooks are in the NAS server.

However when I add a new book I would expect Calibre to copy the file to the NAS server (/nas/data/ebooks) with Calibre's own file structure and update the metadata.db locally but instead of that the book is copied locally to where the metadata.db is present, is this the expected behavior or am I doing something wrong?.

PS: I'm using latest version of Calibre
ufasoli is offline   Reply With Quote
Old 01-10-2026, 06:43 AM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,527
Karma: 150265873
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
It is the correct behavior for calibre to keep the library with the database. You cannot have the database in one directory and the eBooks in another.

What you can do is keep your eBooks on your local drive and use the NAS as a backup. Use FreeFileSync to sync your library to your backup on your NAS. That way you only have to copy everything once and from then on, just what's new or changed.
JSWolf is offline   Reply With Quote
Advert
Old 01-10-2026, 07:03 AM   #3
BetterRed
null operator (he/him)
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: 22,134
Karma: 30317706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Which NAS?

And what's in here:

Click image for larger version

Name:	library location.jpg
Views:	21
Size:	39.8 KB
ID:	220191

BR
BetterRed is offline   Reply With Quote
Old 01-10-2026, 07:17 AM   #4
ufasoli
Member
ufasoli began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2009
Location: Thonon-les-Bains, France
Device: Kobo Libra Colour
Quote:
Originally Posted by JSWolf View Post
It is the correct behavior for calibre to keep the library with the database. You cannot have the database in one directory and the eBooks in another.

What you can do is keep your eBooks on your local drive and use the NAS as a backup. Use FreeFileSync to sync your library to your backup on your NAS. That way you only have to copy everything once and from then on, just what's new or changed.
Hey thanks for the answer but if that is the case I don't understand the reason of that environment variable nor the text in Calibre's wiki :

Code:
CALIBRE_OVERRIDE_DATABASE_PATH - allows you to specify the full path to metadata.db. Using this variable you can have metadata.db be in a location other than the library folder. Useful if your library folder is on a networked drive that does not support file locking.
especially this phrase:

Code:
you can have metadata.db be in a location other than the library folder. Useful if your library folder is on a networked drive that does not support file locking
ufasoli is offline   Reply With Quote
Old Yesterday, 12:21 AM   #5
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: 45,837
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Does not replicate for me. I ran calibre as:

CALIBRE_CONFIG_DIRECTORY=/t/v CALIBRE_OVERRIDE_DATABASE_PATH=/tmp/metadata.db calibre

After setup of the welcome wizard and choosing a library folder, I tried adding a book using the add books button and it was added in the library folder, as expected.
kovidgoyal is offline   Reply With Quote
Advert
Old Yesterday, 03:03 AM   #6
ufasoli
Member
ufasoli began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2009
Location: Thonon-les-Bains, France
Device: Kobo Libra Colour
Quote:
Originally Posted by kovidgoyal View Post
Does not replicate for me. I ran calibre as:

CALIBRE_CONFIG_DIRECTORY=/t/v CALIBRE_OVERRIDE_DATABASE_PATH=/tmp/metadata.db calibre

After setup of the welcome wizard and choosing a library folder, I tried adding a book using the add books button and it was added in the library folder, as expected.
Hey Kovid thanks! Do I have to do anything special to run a fresh install of calibre without any cache ? I tried to but it seems to “remember” the old location?
ufasoli is offline   Reply With Quote
Old Yesterday, 04:30 AM   #7
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: 45,837
Karma: 28586150
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
CALIBRE_CONFIG_DIRECTORY sets where calibre stores all its config data including library locations.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding books from folder also imports books from unknown location rvank Calibre 1 03-25-2016 10:36 PM
Location syncing in sideloaded books Joques Kobo Reader 0 07-25-2014 03:38 AM
The save location for books will not change, even though I modified it deckoff Library Management 2 07-12-2013 03:43 PM
Location of books when adding Inferno Library Management 3 04-21-2012 01:04 PM
How to change location books are stored on reader bdillahu Calibre 5 10-09-2010 11:09 PM


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


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