You must first backup the config file on the old deployment. You can then use the migrate command to essentially import the config (except for system settings) into the new deployment.
You can only restore a config file to the same model of FortiManager.
If you have enabled FortiAnalyzer feature set on the original FortiManager, yes you need to backup & restore logs separately from the config migration.
Fortinet Technical Support