01-05-2009, 03:51 AM | #1 |
Member
Posts: 10
Karma: 10
Join Date: Jan 2009
Device: Sony PRS-T1, Kindle4NT
|
portable database?
Hi,
is it possible to store the database (and ebook-files) on removable disk and use them on two different Computers with an portable Version of calibre? I tried to copy the database-file (metadata.db) along with the ebooks onto removable disk, removed the entry "library_path" from global.py and tried to import the database on removable disk -> calibre crashed ... Any chance of putting calibre itself on removable disk and get settings from a global.py in program-directory (maybe with a non-absolut path)? regards, Friedhelm. |
01-05-2009, 04:05 AM | #2 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
There is no problem with the Calibre database and books being on a removable drive if calibre is already installed on both machines. Simply use the option in Calibre to change the location of the library/metadata files to the portable drive after starting up Calibre.
As to the question as to whether it is possible to avoid installing calibre on machines and running purely from the remvable drive I have no idea - hopefully Kovid or someone else will have a view on this when they come online. Intriguing idea though. |
01-05-2009, 11:04 AM | #3 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the --with-library option to the command calibre to start it with a library located elsewhere.
calibre is not fully portable since it uses standard locations to dave config options, but if you dont care about config options eing portable, it should be perfectly possible to run it from a removable disk. |
01-05-2009, 12:26 PM | #4 |
Wizard
Posts: 1,158
Karma: 32196
Join Date: Jan 2007
Location: Anchorage, AK
Device: Sony Reader PRS-505, PRS-650, PRS-T3, Pocketbook HD2
|
I think the reason people like portable applications on usb is because we can't always install Calibre on work computers but would still like acess to the program.
|
01-05-2009, 12:47 PM | #5 |
Guru
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
|
True, there is no portable version of calibre since it requires the Python runtime to be installed. So while you can take your database with you, the program needs to be installed on each system.
|
01-05-2009, 12:52 PM | #6 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
01-06-2009, 05:48 AM | #7 |
Member
Posts: 10
Karma: 10
Join Date: Jan 2009
Device: Sony PRS-T1, Kindle4NT
|
solved
this is oh so cool.
Code:
@echo off cd calibre calibre.exe --with-library ..\calibre-db Suggestion: how about a calibre-zip without installer? so one could simply unpack this zipfile and has the base for a portable application? this will surely be one of my new favourite apps :-) greetings, Friedhelm. |
01-06-2009, 12:06 PM | #8 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Cool, next release of calibre will have support for the environment variable
CALIBRE_CONFIG_DIRECTORY As for a zip file release, creating such a zip file is trivial, since all you have to do is install the exe insaller, and then zip up the calibre directory. |
01-07-2009, 04:43 AM | #9 |
Member
Posts: 10
Karma: 10
Join Date: Jan 2009
Device: Sony PRS-T1, Kindle4NT
|
*smile*
|
01-21-2009, 01:33 AM | #10 |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Portable Calibre sounds awesome. I see the CALIBRE_CONFIG_DIRECTORY is already implemented. Where do I change it?
Last edited by ilovejedd; 01-21-2009 at 01:37 AM. |
01-21-2009, 01:50 AM | #11 |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
it's an environment variable. calibre will use it to determine where to read config files from.
|
01-21-2009, 04:33 AM | #12 |
Guru
Posts: 753
Karma: 1496807
Join Date: Jul 2008
Location: The Third World
Device: iLiad + PRS-505 + Kindle 3
|
So, you can make three directories for the Linux/OSX/Windows binaries, one for the database and create three batch/shell script to set the environment variables and launch the application....
A real cross-platform application... |
01-21-2009, 10:25 AM | #13 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Okay, so just read up on environment variables since I had no idea what they were. How do I create a DOS/Windows batch file that automatically changes the config path relative to the location of Calibre?
Say I have the following directory structure: Quote:
Code:
@echo off
cd config
setlocal
set CALIBRE_CONFIG_DIRECTORY = %cd%
cd..
cd calibre
calibre.exe --with-library ..\calibre-db
endlocal
Thanks! |
|
01-21-2009, 12:38 PM | #14 | |
creator of calibre
Posts: 43,850
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
01-21-2009, 12:57 PM | #15 | |
hopeless n00b
Posts: 5,111
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
|
|
Tags |
calibre, portable |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
different database for different categories | reup | Calibre | 3 | 06-20-2010 11:25 AM |
Readonly Database | seanbw | Calibre | 6 | 03-17-2010 06:30 PM |
What Database? | LadyLou | Calibre | 8 | 02-12-2010 06:32 AM |
Database outage | Alexander Turcic | Announcements | 2 | 07-14-2005 04:44 PM |
Database troubles | Alexander Turcic | Announcements | 2 | 04-20-2005 01:02 PM |