@catcarrot welcome to the forum.

Copy out the folder ~/.config/joplin-desktop and its entire contents. Use it to replace the same folder of a new install to get your notes back.