![]() |
#1 |
Enthusiast
![]() Posts: 41
Karma: 10
Join Date: May 2009
Location: FL
Device: Kindle 2, Kindle with Special Offers, iPad 2
|
![]()
I got the error asking if I wanted to rebuild my Calibre database... I said Yes.
I had 13,000+ books cataloged. Now I have 810. I am using version 2.0 (I know there is an update, just haven't gotten around to installing it.) I am running 64-bit Calibra on a Windows 8.1 laptop. My Calibre folder lives on an external hard drive. I would add that I have added several custom columns to Calibre, all of which are still there. I still seem to have all the folders in my Calibre folder, and I see the following files: .driveinfo.calibre .metadata.calibre metadata.db metadata_db_prefs_backup.json (which appears to be editable with a text editor) metadata_pre_restore.db Short of starting all over with a totally new database and adding all the books from my Calibre folder back in, is there a way to get back to where I was. ![]() ![]() ![]() |
![]() |
![]() |
![]() |
#2 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
calibre should not delete anything. Are the folders still there? Try using Check Library to locate the non-indexed book folders. You can then move them and add them manually.
One possible problem is that calibre will only rebuild one book per id. Was there an error message when you rebuilt the database? If so, the log might prove enlightening. Last edited by eschwartz; 09-01-2014 at 02:44 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,076
Karma: 57259778
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
The RED should not be there, those are device only files. Someone has been messing beneath the skirts ![]() The green is normal (and is the heart of the Library GUI) Author folders with titles (index_number) inside those The last is probably from a restore attempt (not usually leftover) |
|
![]() |
![]() |
![]() |
#4 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,761
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() BR |
|
![]() |
![]() |
![]() |
#5 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
On its own it does nothing but index the books there. The danger is connecting to the folder and maybe deleting stuff. Or sending stuff and overwriting files or clogging the library with junk.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,761
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Then if you send some books to that folder you'll end up with a bit of shambles see second attachment. The backup is on the left, the operational library is on the right So I'm postulating that the OP made a genuine usage mistake rather than breaking the 'golden rule'. @madelonw - does the above make any sense, might you have inadvertently selected your library folder in a Connect/Share->connect to library. I used a Test library, the 9 books I sent to the Connected folder disappeared from the Library, as can be seen in the second attachment there are less author folders on the right than there are on the left. IMO you need to build a new library by importing books from the 'broken' one - but I'm unsure of the best way to do that such that your metadata is retained. If the library copies have current metadata embedded - eg via Polish, Modify or Embed then its easy to set up the Add options to extract metadata from the books, if not then ideally you would want to get the metadata from the opf files, I don't know how to do that. Oh, to retain your custom columns in the new library, you should be able to created the new library based on the existing one. Aside : maybe there should be a warning - "Do you really want to connect to this library folder" ie a folder with a metadata.db. BR |
|
![]() |
![]() |
![]() |
#7 | |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Quote:
Unless files were deleted or overwritten, in which case they don't exist to be imported into the new library. |
|
![]() |
![]() |
![]() |
#8 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Instead of using Check library to list and optionally delete files not in the library, to move/reimport/discard them, one could create a new library (check the box to use the current library structure, if you wish to preserve layout/custom columns), and use the second option in the Add books dropdown, to import books from a directory, including subdirectories, assue each directory is a separate book where each file is is the same book in a different format.
It will import metadata from the opf, and the cover.jpeg -- I am informed (today) that apparently it will not import the cover unless there is an opf. But that shouldn't matter here. |
![]() |
![]() |
![]() |
#9 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,761
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@e..w - answered my query
![]() Last edited by BetterRed; 09-01-2014 at 08:08 PM. |
![]() |
![]() |
![]() |
#10 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Excellent point. See my cross-post.
![]() ![]() Just giving general theories here (and it's difficult on my Kindle Touch to keep track of more than one or two posts ![]() |
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 20,761
Karma: 27405072
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
![]() |
#12 | |
Enthusiast
![]() Posts: 41
Karma: 10
Join Date: May 2009
Location: FL
Device: Kindle 2, Kindle with Special Offers, iPad 2
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
Tags |
database errors, database restore |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Database rebuild | Jellby | Kobo Reader | 17 | 08-31-2014 04:25 AM |
How to Rebuild Database | apswartz | Calibre | 12 | 03-28-2010 01:11 PM |
How to rebuild database in metafile | gandor62 | Calibre | 3 | 03-27-2010 08:31 PM |
Force Database Rebuild? | davidm_uk | Calibre | 2 | 01-13-2010 02:59 PM |
Rebuild Database? & Use Path instead of Filename? | gai-jin | Calibre | 0 | 07-20-2009 02:58 PM |