RSC backup restore failing on same model hardware and routerOS version

We are generating a rsc backup file using command
/export file=backup.rsc
and then trying to restore same file on a new device which is same model Hardware and also same RouterOS version using command
/system reset-configuration run-after-reset=flash/backup.rsc

But restore is replicating configuration available in the rsc backup file on the same model Hardware.

We get some random configuration commands like loop-protect=0s, or inclusion of source MAC on ethernet interface configuration which seems to be breaking the backup restore.

Please suggest a way forward.

We have tested this on Hex Gr3 Mikrotik with both 6.44.5 (LT) and 6.46.8(latest LT) separately.

hi

export file=backup.rsc
then on the new device reset it to factory with no default config
Important: Use notepad++ and edit your backup and make sure the ports for example are labeled exactly the same ( example: ether1 )
then use netinstall or winbox and attach the backup file and restore the backup

This won’t work because it will start running the .rsc file before all of the interfaces have initialized, so it will try to apply configuration to non existent interfaces and will stop processing at that point. You will need to edit the .rsc file to add a delay at the beginning if you want to use run-after-reset like that.