Using LineageOS on the FP2

I hope with “the data” you don’t mean your files (pictures, downloads, ringtones etc.) in Internal Storage as TWRP doesn’t backup those, and explicitly states this when backing up … you need other means for backing those up before wiping them, e.g. syncing them to the internet or locally (MyPhoneExplorer works great).