Open your launcher, click on Config below, and then Backup :P You'll be able to save a file where all that will be stored, and then you'll just have to follow the same steps to load it again once you reformat.