1. If the versions of the two switches are the same, you can use FTP(
https://forum.huawei.com/enterprise/en/configuration-video-remotely-transfer-files-using-ftp/thread/254803-861) to back up the configuration file of the old switch to the computer, import the configuration file to the new device, set the configuration file to the next startup configuration file, and restart the device.
3.If the old switch has a license, you need to use the revocation code to apply for a new license.