Today I was shown the export and import comands on mikrotik. The export command exports all the settings of the router into a editable test file.
The command for the terminal is:
export file=name of file.
This creates the file in the files folder on the router.
If you then copy the file to files on a new router and run the import comand you will restore the router to the same config as the original one.