View Single Post
Old 09-26-2009, 12:54 PM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Yes - you can have tight control over where aoll the Caliber files are located using a combination of Environment Variables and runtime switches. I use the following batch file on Windows:
Quote:
@echo OFF
REM Batch File to start a Calibre configuration on Windows
REM giving explicit control of the location of:
REM - Calibe Program Files
REM - Calibre Library Files
REM - Calibre Config Files
REM - Calibre Metadata database
REM By setting the paths correctly it can be used to run:
REM - A "portable calibre" off a USB stick.
REM - A network installation with local metadata database
REM (for performance) and books stored on a network share

CD CalibreConfig
SET CALIBRE_CONFIG_DIRECTORY=%cd%
CD ..
CD CalibreLibrary
rem SET CALIBRE_LIBRARY_DIRECTORY=%cd%
SET CALIBRE_LIBRARY_DIRECTORY=U:\eBooks\CalibreLibrary
CD ..
CD Calibre
SET CALIBRE_OVERRIDE_DATABASE_PATH=P:\CalibreLibrary\m etadata.db

echo CD=%cd%
echo CONFIG=%CALIBRE_CONFIG_DIRECTORY%
echo LIBRARY=%CALIBRE_LIBRARY_DIRECTORY%
echo DATABASE=%CALIBRE_OVERRIDE_DATABASE_PATH%
pause

START /belownormal Calibre --with-library %CALIBRE_LIBRARY_DIRECTORY%
This setup is running with a network share for the book files (U and a local (P metadata.db file. You will note I also specify where the Calibre Config information and Program Files are located as I do not use default locations for either. The other point is starting Calibre at BelowNormal priority as this keeps my system responsive without affecting Calibre performance significantly. You should be able to amend it to suit your particular requirements.

If you are not using Windows it should be easy enough to translate it to the equivalent on your system.

Last edited by itimpi; 09-26-2009 at 01:00 PM.
itimpi is offline   Reply With Quote