View Single Post
Old 10-13-2020, 08:01 AM   #2
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,458
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by rjwse@aol.com View Post
I am looking for the listing of Saved Searches but cannot find it. I was able to find the snippet file as a .json but not Saved Searches. Does anyone know? I am reconstructing a corrupt Ubuntu 19.10 (that won't load) onto a new 20.04 and am copying and pasting as needed. Inadvertently, I am learning a lot. Best regards, Pop
Saved searches are stored in the metadata.db for the library. They are backed up in the file metadata_db_prefs_backup.json, located in the top folder of the library along with metadata.db. The json key/dictionary to look for is "saved_searches". Each item in that dictionary is a saved search. The key is the search name and the value is the search text.

The only way to recover these and other library-only prefs is to create a new library, put a copy of metadata_db_prefs_backup.json in that library, then restore the library. This will recover custom column definitions, virtual libraries, saved searches, and a host of other things. If you can't/won't do that then you must enter them one by one in the new library. Fortunately this isn't too hard given you have both the name and the text.
chaley is offline   Reply With Quote