View Single Post
Old 09-18-2024, 10:32 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,763
Karma: 30237526
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@Mister Underhill - I just re-read what you wrote.

If you Restore the library folder from File History it will restore its latest copy of sub-folders and files automatically… i.e. metadata(<most recent date>).db will be restored to metadata.db… etc.

Now I'm wondering of you're proposing to have calibre use the File History copy of the library. IMO that's not a good idea.

BR


Quote:
Originally Posted by BetterRed View Post
Quote:
Originally Posted by Mister Underhill View Post
Ah, okay. In the folder there are a bunch of metadata.db files, but they all include a datestamp in the filename. For instance, the latest one is "metadata (2024_09_09 15_59_25 UTC).db".

So should I just rename that to metadata.db?

Also, I notice that there are a bunch of datestamped .json files named "metadata_db_prefs_backup (DATE).json". Are these configuration files?

Thanks so much for the response!

I would try copying "metadata (2024_09_09 15_59_25 UTC).db" to "metadata .db", ditto the "metadata_db_prefs_backup (DATE).json" file. And then try pointing calibre at the library folder.

If that works do a Library check. If that's okay, delete the dated metadata.db and metadata_db_prefs_backup.json files.

Whilst I have File History enabled on my calibre libraries, I regard it as a last resort backup source for an entire library. However, on more than one occasion it has saved me a lot of grief when I've made a mistake when editing a format file… e.g. deleting the substantive content rather the head and tail bumph.

I use a file synchronisation tool (GoodSync) to backup the data I don't want to lose, which includes calibre libraries.

BR
BetterRed is offline   Reply With Quote