Backup Blender addons and settings
Everything is already in a single folder. You could just install Blender and copy that old preferences folder. On Windows it's
C:\Users\[YOUR USER NAME]\AppData\Roaming\Blender Foundation\Blender\[VERSION NUMBER]\

This may exclude some more complex add-ons that come in few parts like some render engines.