Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 11:26 AM   #1
lucask
Junior Member
lucask began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2017
Location: Uganda
Device: none
recovering a very large Calibre library after system crash

I’m running Calibre 8.4 on Linux and have a very large library I’ve been maintaining for over a decade (around 19k files, ~180 GB). My laptop recently crashed and my only option now is to reinstall the OS.

Using a live USB, I was able to launch Calibre and use the Export Library tool to back up the library in multiple .calibre-data parts, which I’m currently uploading to Dropbox. Before I wipe the drive, I’d like some guidance:

- If in my new Calibre install the import fails for some reason, can I manually recover the old directory structure from all the .calibre-data files?
- Is there a reliable way to verify that the Dropbox uploads are complete and uncorrupted?
- ISince I don’t have access to another machine to test the restore, is there any way to confirm in advance that the exported parts will restore correctly?

More broadly, what would you do in my position?
lucask is offline   Reply With Quote
Old Yesterday, 11:34 AM   #2
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,717
Karma: 80104526
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Rather than using calibre export, seeing that you have access to the files right now, why not simply copy the entire calibre library directory tree to another USB device, along with the calibre preferences (located in .config/calibre and all its sub directories); then it's simply a matter of reinstalling calibre, restoring it's preferences and library, and then starting calibre.
PeterT is offline   Reply With Quote
Advert
Old Yesterday, 11:35 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,938
Karma: 150249633
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lucask View Post
I’m running Calibre 8.4 on Linux and have a very large library I’ve been maintaining for over a decade (around 19k files, ~180 GB). My laptop recently crashed and my only option now is to reinstall the OS.

Using a live USB, I was able to launch Calibre and use the Export Library tool to back up the library in multiple .calibre-data parts, which I’m currently uploading to Dropbox. Before I wipe the drive, I’d like some guidance:

- If in my new Calibre install the import fails for some reason, can I manually recover the old directory structure from all the .calibre-data files?
- Is there a reliable way to verify that the Dropbox uploads are complete and uncorrupted?
- ISince I don’t have access to another machine to test the restore, is there any way to confirm in advance that the exported parts will restore correctly?

More broadly, what would you do in my position?
Don't rely on Dropbox as your only backup. And don't rely on an export as your only backup. I've read of some people having problems importing an export. Your best solution would be to get a USB stick or external hard drive of large enough size and backup your entire drive. In most cases, when you install the OS, you don't have to wipe the drive as long as the drive is OK. So you'd have a full backup and maybe no need to restore the backup.
JSWolf is offline   Reply With Quote
Old Yesterday, 12:20 PM   #4
lucask
Junior Member
lucask began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2017
Location: Uganda
Device: none
Quote:
Originally Posted by PeterT View Post
Rather than using calibre export, seeing that you have access to the files right now, why not simply copy the entire calibre library directory tree to another USB device, along with the calibre preferences (located in .config/calibre and all its sub directories); then it's simply a matter of reinstalling calibre, restoring it's preferences and library, and then starting calibre.
I don't have a large enough external hard drive at hand, and I can't afford to take this into the shop. I'm really worried I might only get partial backups randomly scattered if I try copying the whole folder as you suggest. I've got the checksums of all the calibre parts, wouldn't that be less risky? I can then try downloading a couple of parts and seeing whether they match.
lucask is offline   Reply With Quote
Old Yesterday, 12:47 PM   #5
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,717
Karma: 80104526
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
So upload the directories directly to DropBox.

I don't believe there is any way to manually recover files from the calibe export parts.
PeterT is offline   Reply With Quote
Advert
Old Yesterday, 12:54 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Upload the calibre library folder to dropbox as well. The calibre export is of the same size approximately so if you can upload one you can upload the other. Or if for some reason you dont want to do that, use your live usb to restore the exported parts as a test.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 01:52 PM   #7
lucask
Junior Member
lucask began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2017
Location: Uganda
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Upload the calibre library folder to dropbox as well. The calibre export is of the same size approximately so if you can upload one you can upload the other. Or if for some reason you dont want to do that, use your live usb to restore the exported parts as a test.
Thanks for replying. The advantage I see with the export is that I can make sure all of the parts are there, and I can test random parts with a checksum to be quite certain what I have in my backup is exactly what I have locally. I can't install the dropbox client locally, and can't upload the whole folder in one go so instead I have to drag all the subfolders into the browser in batches. If I skip something or make a mistake I would have no way of telling.

Is it possible to download just a few parts and then attempt an import?
lucask is offline   Reply With Quote
Old Yesterday, 01:59 PM   #8
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,717
Karma: 80104526
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
I could be snarky here and suggest that you just restore your Calibre library and configuration from the backups you make on a regular basis of your important data.

You DO have backups of your important 180 Gb / 19k eBook library, right??
PeterT is offline   Reply With Quote
Old Yesterday, 03:16 PM   #9
lucask
Junior Member
lucask began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2017
Location: Uganda
Device: none
Quote:
Originally Posted by PeterT View Post
I could be snarky here and suggest that you just restore your Calibre library and configuration from the backups you make on a regular basis of your important data.

You DO have backups of your important 180 Gb / 19k eBook library, right??
I have an old backup in Dropbox, but I still haven't lost my data so I'm hoping I won't have to lose anything.

I'll try Kovid's suggestion to upload and delete the calibre parts locally then trying to redownload everything and import from the live USB. If that works I'll proceed to wipe the hard drive, otherwise I'll start backing up the folders one-by-one.
lucask is offline   Reply With Quote
Old Yesterday, 05:21 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,631
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No there is no partial import, you need all the parts to be able to import successfully.
kovidgoyal is offline   Reply With Quote
Old Yesterday, 06:17 PM   #11
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,938
Karma: 150249633
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lucask View Post
I don't have a large enough external hard drive at hand, and I can't afford to take this into the shop. I'm really worried I might only get partial backups randomly scattered if I try copying the whole folder as you suggest. I've got the checksums of all the calibre parts, wouldn't that be less risky? I can then try downloading a couple of parts and seeing whether they match.
Do you know why your computer crashed and needs the OS reinstalled? If it's the hard drive, then it's on the way out and needs to be replaced.
JSWolf is offline   Reply With Quote
Old Yesterday, 08:40 PM   #12
Dal Bhat
Connoisseur
Dal Bhat began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Apr 2024
Device: Kindle 11th Gen
Something so valuable should not have only an "old" backup.
Dal Bhat is offline   Reply With Quote
Old Today, 07:11 AM   #13
lucask
Junior Member
lucask began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2017
Location: Uganda
Device: none
I've tested the import and it seems to work. The only difference is that the metadata.opf files in each folder are gone in the new library. As far as I can tell that's perfectly fine, I can just regenerate the metadata backups afterwards.

As for why it crashed, my OS got misconfigured, it's entirely a boot issue. I've been advised the only way is to reinstall everything.
lucask is offline   Reply With Quote
Old Today, 08:10 AM   #14
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,938
Karma: 150249633
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by lucask View Post
I've tested the import and it seems to work. The only difference is that the metadata.opf files in each folder are gone in the new library. As far as I can tell that's perfectly fine, I can just regenerate the metadata backups afterwards.

As for why it crashed, my OS got misconfigured, it's entirely a boot issue. I've been advised the only way is to reinstall everything.
Who told you that? There should be no reason why you cannot reinstall the OS without having to totally nuke the drive.

But before you do the install, backup any data you want to keep just in case.
JSWolf is offline   Reply With Quote
Old Today, 08:56 AM   #15
lucask
Junior Member
lucask began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Aug 2017
Location: Uganda
Device: none
Quote:
Originally Posted by JSWolf View Post
Who told you that? There should be no reason why you cannot reinstall the OS without having to totally nuke the drive.

But before you do the install, backup any data you want to keep just in case.
Here's where I got that advice: https://discourse.nixos.org/t/nixos-...e-system/71964
lucask is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Recovering library after a HD crash Mister Underhill Library Management 11 09-19-2024 12:35 PM
Recovering the Calibre library on a lost partition fetito666 Library Management 3 01-17-2021 11:02 PM
Calibre makes my whole system freeze/crash scarlettruin Calibre 2 10-30-2018 08:31 PM
Recovering Calibre Windows 64 after disk crash tytrate Library Management 1 02-03-2016 09:05 PM
Calibre 1.0 Causing System to Crash seacity1 Calibre 0 08-26-2013 12:53 PM


All times are GMT -4. The time now is 01:26 PM.


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