12-24-2009, 09:42 AM | #1 |
Wizard
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
corrupt metadata.db and redoing library
I had to redo my library a few times because of database corruption. It was okay when I had a few books now that they are over a few hundred if I ever have to do over it will be really annoying. Plus for a few books I had changed the metadata in calibre but inside they still had the old metadata and covers so when I recreatred my library I had to redo a lot of it again
So I was wondering is saving the metadata of each book in its own folder in a xml file a better Idea. So even if I loose my metadata.db calibre can have an option to rescan and make a new database from the xml files. So there is no need to re add all the books as that takes a long time as calibre tries to find metadata from each book. |
12-24-2009, 10:45 AM | #2 |
Wizard
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
I wonder if Calibre should always save the .opf file with each book (rather like there is always a cover.jpg fle. It would certainly make recovering much easier and I cannot see any obvious downside other than the trivial amount of disk space it would consume. After all that file is always there when you do a "Save to Disk".
I guess a comment from Kovid on this idea would be useful? |
Advert | |
|
12-24-2009, 11:09 AM | #3 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It already does save the OPF file, unless you tell it not to.
|
12-30-2009, 06:03 AM | #4 | |
Wizard
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Quote:
Where as I am talking about the actual library so that for if any reason the database gets corrupted. Calibre can rescan and remake it without having to manually add each ebook and remake the whole database all over again |
|
12-30-2009, 11:27 AM | #5 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The downside would be a slowdown. The OPF file would have to be regenerated for each metadata change and because access to the database is multithreaded the file would have to locked and unlocked to prevent corruption.
|
Advert | |
|
01-01-2010, 04:10 PM | #6 |
Wizard
Posts: 1,759
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
That's true maybe an option to update opf files when closing calibre.
My main problem is database corruption so maybe calibre could make a backup file of the database every session so if there is corruption we can revert back to an older database |
01-01-2010, 04:49 PM | #7 |
creator of calibre
Posts: 43,859
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Why not just backup your library using whatever backup solution you normally use
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My Metadata file seems corrupt | gandor62 | Calibre | 3 | 03-27-2010 08:40 PM |
eBook Library (Mac) and metadata | Samcxjo | Sony Reader | 2 | 10-12-2009 05:26 PM |
Vanishing Changes in Library Metadata | rasbadar | Calibre | 7 | 09-15-2008 12:04 PM |
PC based software library corrupt | exvaxman | Sony Reader | 4 | 11-13-2006 03:29 PM |