You can back-up your ROMs and configurations from the old system and then restore them on the new system via file shares - see https://retropie.org.uk/docs/Updating-RetroPie/#backup-option-2.