Onedrive should be considered a NAS. Here's what the documentation says about that:
https://manual.calibre-ebook.com/faq...rked-drive-nas
There is a way to copy all your settings so your new install of calibre is setup just like your old. It involves moving a set of "settings" folders, but I can't remember what folder. someone else should be able to tell you. It's too early for me...