View Single Post
Old 07-18-2022, 08:30 AM   #13
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by BetterRed View Post
I was planning to get the OP to run the Check after the Restore; there may be some books that are recoverable and others that are not recoverable.
I suggested running it first because a) it is quick which restore is not, and b) if it doesn't find errors then restore won't do anything useful. If it does find errors then they can be instructive. For example, "Extra" authors are folders that don't contain syntactically valid book folders, which probably indicates external tampering of the library. There is something similar for title folders, checking the syntax of the folder name.
Quote:
Does Restore destroy unrecoverable book folders - e,g book folders with no metadata.opf? I've never had to run it in anger.
Restore doesn't delete anything except metadata.db, which it replaces. The old database is saved as metadata_pre_restore.db. Restore checks several things to be sure that the folder structure is semantically correct. The check involving metadata.opf also checks that the book ID in the containing folder name matches the book ID in metadata.opf. If it does not then the folder is ignored (and reported as ignored).

Perhaps the best solution is to back up the library then try restore. The list of errors might be instructive, and the library can be recovered if needed.

Another option is one I think I have seen you suggest: create a new library, do a "Copy books to library w/delete", then see what is left behind.
chaley is offline   Reply With Quote