# How to migrate the Endpoint Central MSP server installation from one computer to another without losing any data? ## Description This document provides the steps to migrate Endpoint Central MSP server from one computer to another without losing any data. **Note:** To migrate Endpoint Central MSP Product from 32-bit to 64-bit architecture, [Click here.](https://www.manageengine.com/desktop-management-msp/migrate-dc-msp-32-to-64-bit-architecture.html) ### Caution! 1. If you have configured Failover server, contact support team for the migration process. 2. If you are managing your mobile devices and choose to change the NAT IP address, you will have to re-enroll all your mobile devices. 3. You should not download a fresh EXE from the website and install it on the new computer; you should only copy the installation directory to the new computer. 4. After migration, ensure that all your agents are contacting the Endpoint Central MSP server in the new installation. Until then, do not uninstall the server in your old setup. 5. The below-mentioned steps should be followed sequentially as per the specified order. Do not change the sequence of any operation, failing which might cause issues in the server migration process. ![Migration Icon](https://www.manageengine.com/desktop-management-msp/images/migration-icon.png) **Need Assistance? Try our Professional Service** We will migrate your Server and Data at a nominal cost of **$295**. Let us know your interest by contacting our support team. Steps for migration vary with respect to the Endpoint Central MSP version you are currently using. This document is applicable only for those running build number **#10.0.55 or above**. ## Steps When Endpoint Central MSP server is migrated, you will have to understand the network setup as explained below and follow the instructions accordingly: **Note:** Endpoint Central MSP Server location can be specified using IP address/FQDN. You can verify your current public IP/FQDN address from Endpoint Central MSP web console → **Admin** → **NAT Settings** → under **NAT Device**. We will consider that the IP address has changed only if the address configured in the above-listed location ("NAT Settings") has been modified. For example, you have configured IP address as `120.3.3.12` which is mapped to the FQDN as `demo.desktopcentral.com`. You have now modified the FQDN as `msp.desktopcentral.com`, however the IP address remains the same. In such cases, you need not consider this as an IP address change. The same applies if only the IP address is modified and you have configured the FQDN under the NAT settings page. 1. Migrate to any computer within the network, without modifying the public IP address 2. Maintain Endpoint Central MSP server in the same computer but with a new public IP address 3. Migrate to a new computer within the same network with a new public IP address 4. Migrate Endpoint Central MSP server to a different network ## 1. Migrate to any computer within the network, without modifying the public IP address To migrate the UEM Central MSP Server, perform the steps mentioned below sequentially: 1. Ensure Software Repository and the Patch Store location is reachable/accessible from the computer where the server is migrated. - For example, if the patch store location is configured as `D:\Patches` in the existing installation, ensure that the patch store location is configured and this path is available in the new server once migration is complete. - If the patch-store location is not configured and the path is not accessible from the new server, the server will not start. - Software Repository refers to the HTTP Repository location shown in Software Repository Settings. 2. If you are using MSSQL Database, ensure that the machine on which the database is installed is reachable from the new server. 3. Stop the product server. 4. Navigate to the location where UEM Central MSP is installed and copy the entire server folder. Paste it into the new server machine. 5. On the new server machine, open Command Prompt as **administrator**. 6. Navigate to `DesktopCentralMSP_Server/bin`, then execute `migrateDCServer.bat`. 7. After a while, start the UEM Central MSP server. You can define a rule to redirect all communications/requests from the old internal IP address to the latest internal IP address. ## 2. Maintain UEM Central MSP server in the same computer but with a new public IP address To migrate the UEM Central MSP Server, perform the steps mentioned below sequentially: 1. On the UEM Central MSP web console, navigate to **Admin** and choose **NAT Settings**, then update the **new public IP address**. 2. Stop the UEM Central MSP server. 3. Start the UEM Central MSP server. **Note:** Ensure the routing is active until all the computers/agents reach the new server. You can define a rule to redirect all communications/requests from the old internal IP address to the latest internal IP address. ## 3. Migrate to a new computer within the same network with a new public IP address To migrate the UEM Central MSP Server, perform the steps mentioned below sequentially: 1. Ensure Software Repository and the Patch Store location is reachable/accessible from the computer where the server is migrated. 2. If you are using MSSQL Database, ensure that the machine on which the database is installed is reachable from the new server. 3. On the product MSP web console, navigate to **Admin** and choose **NAT Settings**, then update the **new public IP address**. 4. Stop the UEM Central MSP server. 5. Navigate to the location where the existing UEM Central MSP is installed and copy the entire server folder. Paste it into the new server machine. 6. On the new server machine, open Command Prompt as **administrator**. 7. Navigate to `DesktopCentralMSP_Server/bin`, then execute `migrateDCServer.bat`. 8. If you have modified the port number in the NAT Settings, update the modified port number in the `websettings.conf` file: 1. Navigate to `\DesktopCentral_Server\conf` (for example, `C:\Program Files\DesktopCentral_Server\conf`). 2. Change the port numbers for the following keys: - `http.port` - `https.port` 3. Save the file and close it. 9. Define rules for the following: 1. Route all communications to the old public IP address to the new public address. 2. Route all communications to the new public IP address to the new server's IP address. 10. Start the product MSP server. **Note:** Ensure the routing is active until all the computers/agents reach the new server. ## 4. Migrate UEM Central MSP server to a different network - For PGSQL database - For MSSQL database ### For PGSQL Database To migrate the UEM Central MSP Server, perform the steps mentioned below sequentially: 1. Ensure Software Repository and the Patch Store location is reachable/accessible from the computer where the server is migrated. 2. On the product MSP web console, navigate to **Admin** and choose **DC Server Migration**, then update the **new public IP address**. 1. Specify the details of the new server such as UEM Central MSP Fully Qualified Domain Name (FQDN), Server IP Address, Secondary IP Address, Server HTTP Port, Server HTTPS Port, etc., and save. 3. Stop the UEM Central MSP server. 4. On the old machine, open Command Prompt as administrator and execute the following from `/bin`: ``` server-migration.bat enable ``` Example: ``` C:\Program Files\DesktopCentral_Server\bin>server-migration.bat enable ``` 5. Copy the entire product server components to the new server machine. 6. On the new server machine, open Command Prompt as **administrator**. 7. Navigate to `DesktopCentralMSP_Server/bin`, then execute `migrateDCServer.bat`. 8. If you have modified the port number in **Admin → DC Server Migration (in the old machine)**, update the modified port number in the `websettings.conf` file: 1. Navigate to `\DesktopCentral_Server\conf`. 2. Change the port numbers for: - `http.port` - `https.port` 3. Save and close the file. 9. Define a rule to redirect all communications/requests from the old IP address to the latest IP address. 10. Route all communications to the new public IP address to the new server's IP address. 11. Start the product server. **Note:** Ensure the routing is active until all the computers/agents reach the new server. ### For MSSQL Database To migrate the UEM Central MSP Server, perform the steps mentioned below sequentially: 1. Ensure Software Repository and the Patch Store location is reachable/accessible from the computer where the server is migrated. 2. On the UEM Central MSP web console, navigate to **Admin** and choose **DC Server Migration**, then update the new public IP address. 1. Specify the details of the new server such as FQDN, Server IP Address, Secondary IP Address, Server HTTP Port, Server HTTPS Port, etc., and save. 3. Stop the UEM Central MSP server. 4. On the old machine, open Command Prompt as administrator and execute: ``` server-migration.bat enable ``` from `/bin`. 5. On the server machine, open Command Prompt as **administrator**. 6. Navigate to `DesktopCentralMSP_Server/bin`, then execute: ``` backuprestore.bat ``` **Note:** Do not try to restore any of your previous database backups, as it might cause damage to your data. 7. Copy the entire UEM Central MSP server components to the new server machine. 8. On the new server machine, open Command Prompt as **administrator**. 9. Navigate to `DesktopCentralMSP_Server/bin`, then execute: ``` migrateDCServer.bat ``` 10. Execute: ``` ChangeDBServer.bat ``` 1. Select Database Type as SQL Server. 2. Specify the Host Name where SQL Server is installed. 3. From the list of available instances, select the required instance. 4. Choose either Windows Authentication or SQL Server Authentication and provide credentials. 5. Enable NTLM authentication. 6. Uncheck the **Migrate Data from Existing Database** option. 7. Click Save to complete the SQL Server configuration. 11. UEM Central MSP Server will take a few minutes to start automatically. This will create new tables and insert default data (equivalent to a fresh setup). 12. Stop the DC Server. Before restoring the backup: 1. Go to the server installation location and copy the `database_params.conf` file. 2. Navigate to `server-home/conf/database_params.conf` in the new setup and copy the file. 3. Extract the archived backup zip and navigate to the same location (for example: `Drive:\ManageEngine\DesktopCentral_Server\conf`) and overwrite `database_params.conf`. 4. Select all files under the unzipped folder and convert them into a zip file. Do not zip the extracted folder directly (to avoid creating an intermediate folder). Ensure the structure matches: `ManageEngine\DesktopCentral_Server\conf`. 5. Restore the data to the new MSSQL database using `backuprestore.bat` from `/bin`. 13. If you modified the port number in **Admin → DC Server Migration (in the old machine)**, update the modified port number in `websettings.conf`: 1. Navigate to `\DesktopCentral_Server\conf`. 2. Change: - `http.port` - `https.port` 3. Save and close the file. 14. Define a rule to redirect all communications/requests from the old IP address to the latest IP address. 15. Start the UEM Central MSP server. **Note:** Ensure the routing is active until all the computers/agents reach the new server.