![]() |
#1 |
Member
![]() Posts: 12
Karma: 22
Join Date: Mar 2015
Device: kobo Aura
|
Databases with the same names
I have some calibre databases with the same name, but in different directory trees (actually they are the backups, but I cannot unmount the backup volume). Let us call them database A, B and C.
Now calibre shows database A from the 'live' directory, database B from the backup directory and, get this, shows two databases C, one live and one of the backup. I only found this after temporarily renaming the backup databases to A_1, B_1 and C_1 and it makes me very nervous, because changes I made to the live database may in fact be made to the backup, and got overwritten by the next backup. If I can tell calibre that it should only find databases in the live directory, my problem would be solved, but how do I do that? Thank you Paai |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
PAI
I take it, you are referring to SERVER. IIRC that uses the quick launch list. Simply Remove Library those from the list. (That Delete does not touch the Libraries, only the menu item) You can NOT remove the current (in use) Library Right-click the Library Icon: Remove Library:<select> |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Member
![]() Posts: 12
Karma: 22
Join Date: Mar 2015
Device: kobo Aura
|
Quote:
Paai |
|
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,944
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,662
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If you hover the mouse on a book cover it will show the path to the cover.
The current library cannot be removed - i.e. it won't appear in the Remove libraries list. Try creating symbolic links to the backup libraries with different names e.g. the symlink that references a backup of your Books library might be named BooksBackup. Then if you point calibre at a symlink to a library it will use the symlink name - so, you'd see a Books library, and a BooksBackup library. BR |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 12
Karma: 22
Join Date: Mar 2015
Device: kobo Aura
|
Is it possible that the problem lies in the fact that during the backup, the metadata.db gets backed up too?
I use Luckybackup with rsync on a Linux machine, and in theory the metadata.db in the live directory is always the same age or newer than the file in the backup. So that should work. Now say, I made a mistake and changed the database in the backup tree. Now this metadata.db is newer and gets copied over the live one. Will it bring the pathnames of the backup with it and overwrite the pathnames in the live database? Thatwould explain a lot. Paai |
![]() |
![]() |
![]() |
#7 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Quote:
If not the simple solution is to use the Remove Library option from within Calibre. This does not actually touch the library files on disk - all it does is remove the link to that library from the Calibre GUI. As was mentioned the current library is not shown on that list so you cannot accidentally remove the pointer to the current library. If you DO want these copies to be visible from within Calibre then you should give them different names. |
|
![]() |
![]() |
![]() |
#8 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,662
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
If you want the backup library to be permanently accessible in calibre I recommend you give the backup library folder a different name to lessen the chances of you making inadvertent changes to it. Maybe Luckybackup/rsynch has a feature to facilitate that, or you could do it via pre-sync and post-sync script commands. BR Last edited by BetterRed; 10-25-2018 at 04:58 AM. |
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 12
Karma: 22
Join Date: Mar 2015
Device: kobo Aura
|
Is that possible? I see only two possibilities: backup and synchronize. It says nothing about one-way mirrors, but it would solve my problem with calibre (and somme other databases).
|
![]() |
![]() |
![]() |
#10 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,662
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
I suggest you find an alternative sync tool, ==>> Comparison of file synchronization software - Wikipedia FWIW - I use Goodsync to mirror all my data. FreeFileSync, SyncToy and rsynch are also quite popular amongst the calibre user community. BR |
|
![]() |
![]() |
![]() |
#11 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
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:
As for library name, afaik Calibre doesn't explicitly store the library name in the database. It just gets the library name from the directory/folder name where metadata.db is located. I don't believe Calibre scans drives for libraries. By default, I believe it only shows libraries you explicitly added so you must have added your backup libraries to Calibre at some point. If you mouse-over on the library name, it should show you the path in the status bar. I highly suggest you remove your backup libraries from Calibre or at least change their directory names so you don't make any accidental changes (I believe you can do the latter within Calibre via Rename library). I use FreeFileSync which I believe has a Linux version. Highly recommended. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
automatic changing christian names and family names | sjefclaassen | Calibre | 3 | 09-29-2017 06:59 AM |
Switching databases | plusunim | Calibre | 4 | 06-26-2014 12:14 PM |
Synchronize databases | parasit | Library Management | 12 | 12-20-2011 12:34 PM |
Multiple Databases | danchisum | Calibre | 1 | 07-29-2010 09:35 PM |
Two calibre databases | jjansen | Calibre | 2 | 02-11-2010 12:52 PM |