How to transfer the local sites to another computer

For some reasons, I had to change my hard disk. Now I want to install Local by Flywheel on the new disk. Unfortunately, I couldn’t export the local sites from my old harddisk but I have in in a UBS enclosure and can copy its contents.

What’s the procedure to transfer the local sites from my old HDD to the new one?

I’m still not sure how to transfer old sites without the export/import function.

I’m thinking of installing the same version of Local on the new computer, create new sites with the same domain names and overwrite the contents of the new sites ( I mean the folders app, logs and the local-site.json file) with those of the old sites.

Do you think it will work?