Please search the forum, this topic has been discussed far too often already server_migration
In short:
- There is no way to migrate to a different version
- either upgrade the old one until latest
- or migrate first and upgrade the destination system
you can mix and match steps 2 and 3 as you want or even use an intermediate system like VM or docker to perform intermediate upgrades and only migrate the last version to the destination system.