Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2013, 07:27 PM   #1
wcott
Enthusiast
wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!
 
Posts: 25
Karma: 5394
Join Date: Oct 2011
Location: Thunder Bay, Ontario, Canada
Device: kobo
How do I replace my Library?

OK...I've somehow lost all my books (1000+) from Calibre - but I've all got those books in a "Calibre Library" file on my iMac.
My question is - how do I transfer all those books from my "Calibre Library" file into Calibre itself? Surely to god there's gotta be a way to take all 1000 book records and they'll end up on the Calibre page.
Should I take those books out of that file...put them in another file, and try loading them that way?
wcott is offline   Reply With Quote
Old 07-29-2013, 07:40 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by wcott View Post
OK...I've somehow lost all my books (1000+) from Calibre - but I've all got those books in a "Calibre Library" file on my iMac.
My question is - how do I transfer all those books from my "Calibre Library" file into Calibre itself? Surely to god there's gotta be a way to take all 1000 book records and they'll end up on the Calibre page.
Should I take those books out of that file...put them in another file, and try loading them that way?
If that folder has a metadata.db.

Just point calibre at the folder: Right-click the Library Icon: Create/switch: Use existing: (browse to it)
theducks is online now   Reply With Quote
Advert
Old 07-29-2013, 07:59 PM   #3
wcott
Enthusiast
wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!
 
Posts: 25
Karma: 5394
Join Date: Oct 2011
Location: Thunder Bay, Ontario, Canada
Device: kobo
I'm going to Calibre Library, right-clicking to create/switch...and an error message comes up - DatabaseException: disk I/O error
RemoteTraceback (most recent call last):
File "site-packages/calibre/library/sqlite.py", line 272, in run
OperationalError: disk I/O error

Exactly how fugged am I?
wcott is offline   Reply With Quote
Old 07-29-2013, 08:09 PM   #4
wcott
Enthusiast
wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!
 
Posts: 25
Karma: 5394
Join Date: Oct 2011
Location: Thunder Bay, Ontario, Canada
Device: kobo
I see the metadata.db file in my Calibre Library file.
It's a document, with 131 KB of data in it.
But that error message above keeps coming up.

I just want to move those 1000 titles from my drive...so when I call up Calibre, they show up.
wcott is offline   Reply With Quote
Old 07-29-2013, 08:16 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by wcott View Post
I'm going to Calibre Library, right-clicking to create/switch...and an error message comes up - DatabaseException: disk I/O error
RemoteTraceback (most recent call last):
File "site-packages/calibre/library/sqlite.py", line 272, in run
OperationalError: disk I/O error

Exactly how fugged am I?
If this is an internal disk, It might be failing. (do not Defrag or do any drive intensive operation until you have backed up the important stuff)

Just copy the Calibre Library folder and ALL its contents to a safe place.

That is it. Books and metadata backed up
theducks is online now   Reply With Quote
Advert
Old 07-29-2013, 08:25 PM   #6
wcott
Enthusiast
wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!
 
Posts: 25
Karma: 5394
Join Date: Oct 2011
Location: Thunder Bay, Ontario, Canada
Device: kobo
OK...backed up onto a USB stick.
Still don't know how to get those 1000 books back into Calibre.
wcott is offline   Reply With Quote
Old 07-29-2013, 09:31 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by wcott View Post
OK...backed up onto a USB stick.
Still don't know how to get those 1000 books back into Calibre.
Once you get the HD settled, just copy them (the folder) back
The folder IS the Library.
You can even use it on the USB stick (it will be slow)
I keep 3 USB sticks as staggered backups. sometimes I recover a oops by simply switching to the Stick: select the title(s): Copy to Library: <main one>
theducks is online now   Reply With Quote
Old 07-30-2013, 02:55 PM   #8
wcott
Enthusiast
wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!
 
Posts: 25
Karma: 5394
Join Date: Oct 2011
Location: Thunder Bay, Ontario, Canada
Device: kobo
OK...managed to get it back, albeit with hardly any covers or metadata on the books. I thought the metadata.db file was supposed to contain all that. I had copied My Calibre Library onto a USB, so I at least had multiple backups of my titles.
Now that I've completed putting most of the covers, metadata, and series, etc...back onto the Calibre page...if I so something like SAVE TO DISK, will I save EVERYTHING - including all the covers/writeups/series?
In case this weirdness happens again...I'd like to be able to restore everything without spending umpteen hours downloaded covers and metadata?
wcott is offline   Reply With Quote
Old 07-30-2013, 03:25 PM   #9
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Save to Disk will export the files from Calibre with all the info intact.

However if you simply want a backup you can copy the Calibre library folder and all of its contents.
itimpi is offline   Reply With Quote
Old 07-30-2013, 03:36 PM   #10
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
The easiest way to backup is to simply copy the entire calibre library folder to some other place. As has already been said, that folder is the library.

You can also use the save to disk feature, but then you will have to create a new library and add the books to the new library in order to restore everything. And you may loose custom columns and other stuff.

Create a small library with a few books and make a backup. Delete the library and restore it, to make sure it works. If you have a large library then some sync utility can make it faster, so you just have to save changes to update the backup, not the entire library.
Adoby is offline   Reply With Quote
Old 07-30-2013, 04:41 PM   #11
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,818
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by wcott View Post
OK...managed to get it back, albeit with hardly any covers or metadata on the books. I thought the metadata.db file was supposed to contain all that. I had copied My Calibre Library onto a USB, so I at least had multiple backups of my titles.
Now that I've completed putting most of the covers, metadata, and series, etc...back onto the Calibre page...if I so something like SAVE TO DISK, will I save EVERYTHING - including all the covers/writeups/series?
In case this weirdness happens again...I'd like to be able to restore everything without spending umpteen hours downloaded covers and metadata?
If you had saved the Library Folder using the OS COPY:
Each 'Book' folder contains:
1 or More Formats of the book bookname.format
The 'cover' as shown in Calibre :cover.jpeg
the backup of the metadata, less cover image, as shown in calibre metadata.opf

If thease are intact a full recovery should have been possible, even with a damaged metadata.db

Once you do other types of restores, calibre starts backing up the metadata, overwriting what existed in the backup
theducks is online now   Reply With Quote
Old 07-31-2013, 10:26 AM   #12
wcott
Enthusiast
wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!
 
Posts: 25
Karma: 5394
Join Date: Oct 2011
Location: Thunder Bay, Ontario, Canada
Device: kobo
So if I Save to Disk (using the first option in the dropdown menu) to an external drive - will I have created merely a copy of the Calibre Library, or will Calibre now think that my Library is elsewhere other than on my hard drive - thereby giving me a headache for the future?

What is frustrating is that I could see the files containing the metadate.db folder...and pointed Calibre to it, and all it would say is that it KNEW that my library was at that location, and wouldn't do anything with it. Was my whole methodology flawed for getting my Calibre library back onto Calibre?
wcott is offline   Reply With Quote
Old 07-31-2013, 10:35 AM   #13
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
No - the Save to Disk option is effectively an export from the Calibre library - not the library itself.

What is not clear is why you were originally not able to switch to a copy of the Calibre library folder - this should work! Is there any chance your copy did not have full read/write access allowed or the user running Calibre?
itimpi is offline   Reply With Quote
Old 07-31-2013, 11:07 AM   #14
Adoby
Handy Elephant
Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.Adoby ought to be getting tired of karma fortunes by now.
 
Adoby's Avatar
 
Posts: 1,736
Karma: 26785668
Join Date: Dec 2009
Location: Southern Sweden, far out in the quiet woods
Device: Thinkpad E595, Ubuntu Mate, Huawei Mediapad 5, Bouye Likebook Plus
You should use the save to disk feature if you wish to access the books without using the GUI, and without a reader device. When you save to disk you can specify how you want the books to be saved. What folder tree structure to use and how the books should be named. Very flexible. You can even modify the metadata inside the books on the fly, using plugboards. But perhaps this is not suitable for import back to calibre, since calibre only can read metadata from inside the files or from the filenames, not from the folder names used.

Some users dislike how calibre store the books and only use calibre to update their own idea of the perfect book storage file structure. They only use calibre to convert and fix the books and then save them to disk. After that they can delete the books from calibre, or keep them in calibre as a backup.

If you want a backup of the calibre library, backup the calibre library directly, as it is. That allows you to quickly restore the library if something bad should happen. Like the computer being stolen or a hd crash. But make sure you try to use the backup. Make a small test library. Make a backup. Pretend that the computer is stolen and restore the calibre library to another computer, or to another folder on the current computer.

More information here: http://manual.calibre-ebook.com/faq....ary-management

Last edited by Adoby; 07-31-2013 at 11:12 AM.
Adoby is offline   Reply With Quote
Old 07-31-2013, 02:13 PM   #15
wcott
Enthusiast
wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!wcott , Klaatu Barada Niktu!
 
Posts: 25
Karma: 5394
Join Date: Oct 2011
Location: Thunder Bay, Ontario, Canada
Device: kobo
Quote:
Originally Posted by itimpi View Post
No - the Save to Disk option is effectively an export from the Calibre library - not the library itself.

What is not clear is why you were originally not able to switch to a copy of the Calibre library folder - this should work! Is there any chance your copy did not have full read/write access allowed or the user running Calibre?
Honestly, I used ADD BOOKS, then found my Calibre Library on my hard drive - and all it would say is "Calibre Library is already at that location" or something to that effect. That's why I was asking if I was somehow doing something incorrect in trying to import my library back onto Calibre.
wcott is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help with Search and Replace please! worley Conversion 2 07-28-2012 09:29 AM
Find Replace unrulyguides Sigil 5 02-17-2012 08:38 PM
Global Replace signum Sigil 2 08-29-2011 09:08 AM
search and replace - drops blanks in replace ? cybmole Conversion 10 03-13-2011 03:07 AM
regex replace??? schuster Conversion 14 01-29-2011 09:02 AM


All times are GMT -4. The time now is 03:07 AM.


MobileRead.com is a privately owned, operated and funded community.