What files to backup for a full reinstall?

I think I need to do a full reinstall of OSMC (it’s no longer recognising the HDD that holds my media, and this has been the only viable solution in the past to this problem).

I’d like to avoid having to rebuild my media library of movies/TV shows, and would like to know what files I need to keep to preserve the library as it’s now organised, and how to restore them to the new install. I’m planning on backing them up by copying them to a USB flash drive.

Thank you for your help.

Just use the MyOSMC backup tool and tick all the boxes.