![]() |
#1 |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
A different question re rebuilding a library
Hi, I have my Calibre library divided into several Libraries (e.g. General Fiction, Juvenile, SciFi, etc.). This library is stored on my Qnap NAS and occupies some 46+GB! Recently my General Fiction folder's metadata.db became corrupted, probably because I was running critically low on RAM with a lot of apps (incl. Calibre) open. I am running OS X Yosemite (latest). This has been fixed with the addition of an additional 16GB of RAM over and above the Apple standard 8GB (new total 24GB).
All the folders with the books and their metadata are there, Calibre | General Fiction | one folder per book (nested under author). I was wondering if there was a way to 're-add' my entire library without creating obscene numbers of duplicates? I see that Calibre warns about duplicates and doesn't appear to add them. Is this true? If it is, am I safe in simply telling Calibre to re-add the contents of my General Fiction library and it will just add the missing books and their metadata from the relevant folders? As there are about 7,000 books it would be a monumental task to recrete the metadata for them all! Thanks for a very informative forum. I have benefited from your collective wisdom on several occasions. |
![]() |
![]() |
![]() |
#2 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,917
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
#1 NAS are not supported (in the FAQ). Things can go south at any time.
I really suggest that A NEW Main Library (or a copy of the target) be placed on a Local disc and Merge the rest into this one. Avoid the NASty in NAS merging: ![]() ![]() Preferences:Adding Books: controls how duplicates are handled when added. Make needed adjustments ![]() select some books in SOURCE library: Right-click:Copy to Library: <name> (optional) Small batches suggested. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Also, Library toolbar dropdown ==> Library Maintenance ==> Restore Database can re-add loose book folders to the database, might help with the corruption.
As theducks said, the corruption may very well have resulted from using a NAS ![]() |
![]() |
![]() |
![]() |
#4 |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
Sorry, please ignore this - see reply to theducks message instead
Last edited by mickblu; 05-05-2015 at 07:16 PM. Reason: Didn't do it as a reply... :-( |
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
Thanks for the suggestion. However, I don't seem to have the "Restore Database" function in my Library menu. I have every other entry shown in the online manual, just not #6, 'Library Maintenance.' Any ideas?
Last edited by mickblu; 05-05-2015 at 07:26 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
Many thanks for the prompt reply with suggestions on how to handle things! I will go and search the FAQ for the NAS avoidance reason and take your advice (I have a 3TB primary drive so I can afford the space).
The only question I had asked that you didn't address (and I guess a test will tell) is whether Calibre will retrieve the metadata from the existing folders when copying them to the new drive. BTW, is there a better way to structure my library? I currently have Calibre and then off that a number of library folders (General Fiction, Juvenile, etc.) Would virtual libraries be better than libraries given how many books I have? I'd appreciate your input. |
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Virtual libraries are quite nifty, yes. Just use a tag for each and have the virtual libraries match the tags.
You can even make the virtual libraries appear as different tabs in the main library. If Library Maintenance isn't showing up, I will hazard a guess that you have a connected device. ![]() If that isn't the problem then ![]() Code:
calibredb restore_database --really-do-it |
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
Hmmm... no devices attached and now it is there under Calibre | Library Maintenance. I guess that had to have been the reason (guess it makes sense you can't maintain your librry with a device connected but i sure wish Kovid would have chosen to simply gray the entry out rather than make it disappear!)
![]() Since you're so helpful, where would I find calibredb? (not that I need it now, but I would like to know for future reference. A Spotlight search and a peek into the apps folder don't show it, and unless you're in the proper directory, terminal mode won't run it either! Last edited by mickblu; 05-05-2015 at 08:47 PM. |
![]() |
![]() |
![]() |
#9 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,645
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Note that paragraph about OSX at top of page. Lots of useful stuff there BR |
|
![]() |
![]() |
![]() |
#10 |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
Great - thanks a bunch! Looking 'inside' the calibre app there is a heck of a lot of good stuff!
![]() Last edited by mickblu; 05-08-2015 at 01:03 PM. |
![]() |
![]() |
![]() |
#11 |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
I checked, eschwartz, and yes, Macs do have rsync.
|
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,328
Karma: 78876004
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
You might want to resize that image... See the image posting guidelines. https://www.mobileread.com/forums/faq...ing_guidelines
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I setup an automatic installer for linux, which I attempted to port over to OSX as well, but I can't really test it.
![]() One thing it does is symlinks the CLI tools into /usr/bin (because whyever not, if you are running a root script to update calibre, rather than copying a .dmg via the GUI?) calibre used to do that in Preferences ==> Miscellaneous, but apparently the method used stopped working. Last edited by eschwartz; 05-05-2015 at 08:56 PM. |
![]() |
![]() |
![]() |
#14 | |
Member
![]() Posts: 14
Karma: 10
Join Date: Nov 2012
Device: Kindle Paperwhite 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#15 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,917
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() ![]() ![]() That way you get a thumbnail to show, but those who choose can still see the biggie. IIRC only filesize prevails for atachments (each file type has size limits) |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Errors on Library Rebuilding | Giuseppe Chillem | Calibre | 0 | 07-30-2013 03:46 PM |
Rebuilding the Polymath | sbspalding | Self-Promotions by Authors and Publishers | 0 | 06-18-2013 01:08 PM |
Development Rebuilding the filesystem to increase app storage | pablob | enTourage eDGe | 23 | 04-24-2012 10:55 AM |
Rebuilding library from device | esuli | Library Management | 7 | 11-16-2011 03:33 AM |
Android APK Rebuilding | techiem2 | enTourage Archive | 7 | 05-25-2010 10:39 PM |