Automatic router configuration

I am currently working on a system that will automatically retrieve the configuration of several of our routers running MikroTikOS through ssh. The system will also configure the routers through a web interface. I am new to MikroTikOS. I am currently investigating what features are available in MikroTikOS that will simplify this task.

I infer from the documentation that the router configuration can be saved and restored using a binary file. Is there anywhere I can find the specifications for this file such that I can alter the configuration using only this file?

Alternatively I see that the export/import command can be used to export the router configuartion to a text file. However, the import statement only imports parts of the confiuration (why?). Where can I find more information about which part of the configuration will be imported using /import?

Any other ideas how to simplify this task using commands available in MikroTikOS?

Regards,
Helge

what parts of export file are not imported? please clarify.

I am unsure of which parts are not imported. The documentation is not clear about this, it simply states that

Note that it is impossible to import the whole router configuration using this feature. It can only be used to import a part of configuration (for example, firewall rules) in order to spare you some typing.

The documentation is found at
http://www.mikrotik.com/testdocs/ros/2.9/system/management_content.php

Binary backup has everything but needs to be restored on a similar version from which it was created and will only work on the same architecture.

I know the users and historical graphs (config is, though) are not exported with the text backup. I don’t know of anything else that is not.