Save presets before formatting

How can I save my presets so I don’t lose everything when I format the computer?

There are all the settings and preset paths