![]() |
#16 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2010
Device: android
|
Of course this happened to me before it got backed up. In fact, I was doing some cleanup, fixing some tags, adding some new books, before I moved the whole database to where my auto backup would pick it up. I had originally loaded the software on a crappy laptop just to give it try, and before I knew it, it had 1000 books and everyone in the house was accessing it via wifi. I thought the new network server would be better than a 6 year old laptop where the battery wouldn't hold a charge. I just didn't move quick enough!
I tried setting "Read metadata from file contents" and it made a bigger mess. So, am I correct in assuming: 1. All secondary author info is only stored in metadata.db 2. The full (not truncated) book name is only stored in metadata.db 3. All book covers are stored as "cover.jpg" and whether the book has a "cover.jpg" is stored in metadata.db It turns out I never deleted the source book files (thank you, overly large disk drives), so if I add all of them again from there into a clean library, I'll at least get the books and authors back. The pain will be the covers. Any ideas? Thanks in advance. |
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
(More accurately, on point 3, I believe the database does not store whether the book has a "cover.jpg." Calibre just looks to see if it exists.) |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 657
Karma: 64171
Join Date: Sep 2010
Location: Kent, England, Sol 3, ZZ9 plural Z Alpha
Device: Sony PRS-300, Kobo Aura HD, iPad (Marvin)
|
I've just nearly had this problem, but luckily I had a very recent backup.
My solution would be for calibre to also store an *opf file in the directory with each of the entries, storing all the metadata, so it would be able to re-import the data if needed. See this thread, for details https://www.mobileread.com/forums/showthread.php?t=99193 |
![]() |
![]() |
![]() |
#19 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
For all the talk about making things much much worse, you don't go to a backup unless things are already bad. Bottom line your saying if you have to go to a backup, restore a complete backup. That most likely an incremental step like restoring just the metadata.db file will prolong your frustration and in the long run cause more head banging or hair pulling. |
|
![]() |
![]() |
![]() |
#20 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Sep 2010
Device: android
|
Quote:
Also, on the backup/restore part of the discussion, just based on my near-catastrophic database problems, I agree with dwanthny completely - the only way to back up this database is to backup the entire database. Disk space is cheap. Thanks again for the info/advice. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,793
Karma: 30548723
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Quote:
I personally use dropbox so thats backs up the metadata.db for me automatically. |
|
![]() |
![]() |
![]() |
#22 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,130
Karma: 91256
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
|
Quote:
|
|
![]() |
![]() |
![]() |
#23 | ||||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Calibre will, in fact, create empty folders, based on the metadata.db file. Try it yourself. Create an empty library, exit calibre, place a large metadata.db file in the completely empty library (mine had 4019 book) in place of the recently created metadata.db and when you start calibre it will populate that empty library with a complete folder structure that matches what the metadata.db file says should be there. There won't be any files but the entire folder structure will be created (see attached). Quote:
Quote:
If I had been updating my library for a week (since the last full backup) and I get hit by a power glitch that corrupts my metadata.db file. Simply replacing the corrupt metadata.db file with a recent backup from the last time the metadata.db file was updated prior to the power glitch is a quick way to get you back up and running with minimal risk to pulling out any hair. My metadata.db file using Dropbox version 0.8.?? is backed up every time the file is changed. While there may be items lost, running a database integrity check should point out where any discrepancies lie. There is virtually zero chance of things getting much worse then not working to begin with, which is the state the library would have been in when you tried to restore it. And there is virtually every chance that the restoration will be a smooth one with minimal bumps in the road. Last edited by DoctorOhh; 09-22-2010 at 05:18 AM. |
||||
![]() |
![]() |
![]() |
#24 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
I don't want to deal with someone asking why his/her foot got shot, so I won't provide a loaded gun. Others may make a different decision. |
||
![]() |
![]() |
![]() |
#25 |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,896
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre problem to start (database) | disi | Calibre | 1 | 10-11-2010 06:35 PM |
What Database? | LadyLou | Calibre | 8 | 02-12-2010 06:32 AM |
Exporting the database... | mharrop19 | Calibre | 8 | 11-17-2009 05:54 PM |
duplicates in database | RJA | Calibre | 3 | 06-22-2009 09:06 AM |
new database format | alexxxm | Calibre | 10 | 11-19-2008 03:45 AM |