The best solution would be to use export and import:
https://wiki.mikrotik.com/wiki/Manual:C ... Management
If you import configuration on device with another RouterOS version then some parameters might differ and then you can simply edit configuration file in order to adjust it to new RouterOS version.
If you would use backup, then you could import configuration reliably only on same model device and if same RouterOS version is installed as it was on router when backup was generated.