Why has no one mentioned simply using Export under the Library button on the menu bar? I've used its Import pair several times now to restore everything about Calibre. Am I not seeing something that the export/import function doesn't save/restore?
https://manual.calibre-ebook.com/gui.html#library