Everything is stored in the Plex data folder, which is located by default on drive C:
You need to backup this data folder and the Plex branch of the windows registry https://support.plex.tv/articles/201539237-backing-up-plex-media-server-data/
I’ve prepared a more detailed description in this post. It might be of use to you: Rebuilding Server