You can backup and restore the configuration from MM to MM. You will have to migrate the Licenses yourself, because licenses are tied to hardware. Backing up the flash can be problematic, so just backup and restore the configuration to the new device. You will of course have to console into the new MM to fix things like interfaces, just like if you backed up and restored a config from different controllers.
I am not aware of any There is no documentation on how to backup and restore MMs, really.