View Single Post
Old Yesterday, 05:54 PM   #5
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,036
Karma: 30277960
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Sylvain Langlois View Post
. . .

Hints are welcome.
Firstly, make sure you have backups of your library and calibre's configuration folder and you know how to restore them if something breaks.

Hint: see the following Environment variables
Quote:
CALIBRE_CONFIG_DIRECTORY - sets the folder where configuration files are stored/read.
CALIBRE_TEMP_DIR - sets the temporary folder used by calibre
CALIBRE_CACHE_DIRECTORY - sets the folder calibre uses to cache persistent data between sessions
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.
You would set them as System Environment variables (in Settings search for 'env').

The locations referenced would not be within any User directory, I would use C:\ProgramData\MyCalibre (aka C:\Users\All Users - via a Windows installed junction) so you might have:

Code:
CALIBRE_CONFIG_DIRECTORY=C:\ProgramData\MyCalibre\Configuration
CALIBRE_TEMP_DIR=C:\ProgramData\MyCalibre\Temp
CALIBRE_CACHE_DIRECTORY=C:\ProgramData\MyCalibre\Cache
CALIBRE_OVERRIDE_DATABASE_PATH=C:\ProgramData\MyCalibre\Library\metadata.db
Downsides :
- would only work for one library (database)
- if a change is made to any of calibre's preferences it will apply to everyone.
- I do not know how well it would cope with multiple e-readers registered to different accounts at different suppliers.

BR
BetterRed is offline   Reply With Quote