Best way to export and then import configuration

Dear all,
which is the best way to export configuration and import it on a new device that is the same model ?
I tried export command from consolle but it export also mac address…

There is not a “sure”, “automated” way.
Export the configuration of the “old” device.
Export the configuration of the “new” device.
Use a visual diff/merge tool to compare the two and create a file with the desired differences.
A spreadsheet or better a dedicated tool like Notepad++ would do.
In a perfect world there would be a free three way diff/merge tool like KDiff3, with inbuilt Mikrotik syntax (or at least capable of understanding the / used for long lines), but I don’t know if one exists. :confused:

You can just click on each interface and do a reset mac address to get rid of the mac address copy issue.

I mentioned mac address… but it is the only property device specific?

AFAIK there is also the issue with repeated/duplicated lines.
Basically “set” commands should be OK for import/paste in terminal, while “add” ones may create duplicates, and - it depends on the configuration - there may be issues with items that are referenced in a setting that is imported/copied before the actual item is declared/added/set.
Of course unless the new device has been completely reset.
And BTW an export might miss anyway some items like users and certificates.
http://forum.mikrotik.com/t/export-import-ros-configuration/165652/1
http://forum.mikrotik.com/t/howto-copy-configuration-from-rb951g-2hnd-to-hap-ax3/164420/13

You can try with exactly same model to make a backup and restore it on the new device, then reset or change MAC address.