@pauly1705 Backup the ROMs/BIOS/configs, as indicated in https://retropie.org.uk/docs/Updating-RetroPie/#making-a-backup-option-2. You can copy them later on the new system, starting with the ROMs.

Backup your sdcard also, before re-installing.