How to migrate ADSelfService Plus with the built-in PostgreSQL database to a new server

Last updated on:

Objective

This article explains how to migrate ADSelfService Plus with its built-in PostgreSQL database from an existing server to a new server while retaining the database, product configuration, and applicable customizations.

Use this procedure when replacing or decommissioning the existing ADSelfService Plus server, moving ADSelfService Plus to a new server, or rehosting the application as part of an infrastructure refresh without changing the database type.

This procedure assumes that the source and destination installations use the same architecture. To migrate a 32-bit ADSelfService Plus installation to 64-bit, refer to this article.

Prerequisites

Before you begin, make sure that:

  • You have local administrator privileges on both the source and destination servers.
  • The destination server meets the ADSelfService Plus system requirements and can communicate with the directories, mail server, and other services used by your deployment.
  • Schedule a maintenance window. ADSelfService Plus will be unavailable during backup, migration, and restoration processes.
  • This procedure is for a standard built-in PostgreSQL deployment. For failover or load balancing, use deployment-specific migration guidance; those configurations require an external database.
Important:

Do not uninstall or decommission ADSelfService Plus on the source server until the migrated installation has been restored and successfully validated.

Steps to migrate ADSelfService Plus to a new server

Step 1: Verify the ADSelfService Plus build

  1. Log in to the ADSelfService Plus admin portal and note the current version and build number.
  2. If required, update the source installation to the latest applicable build before beginning the migration.
  3. Open the ADSelfService Plus installation directory. The default location is: C:\Program Files\ManageEngine\ADSelfService Plus.
  4. Open the conf folder and open database_params.conf in a text editor.
  5. Confirm that PostgreSQL is configured as the back-end database.
  6. If the installation uses another database, stop and contact ADSelfService Plus support for the applicable migration procedure.

Step 2: Confirm the database backup password

Before creating the migration backup, make sure you can identify the password that will be required during restoration.

If no custom database backup password is configured, the default password is the backup file name reversed character by character, excluding the file extension.

For example, OfflineBackup_20250813160300.ezip uses 00306131805202_pukcaBenilffO as the default password.

The password is case-sensitive.

If an administrator-configured password is used, make sure the password is available.

If the password has been forgotten but you still have access to the source ADSelfService Plus installation, retain the source customer-config.xml file from the conf folder and contact ADSelfService Plus support to recover the encrypted password.

Important:

Without either the database backup password or access to the source customer-config.xml, the backup cannot be restored.

Step 3: Back up the database

  1. Stop ADSelfService Plus on the source server.
    • If ADSelfService Plus runs as a Windows service, open services.msc and stop the ManageEngine ADSelfService Plus service.
    • If ADSelfService Plus runs as an application, locate its icon in the Windows notification area (system tray) and stop the application.
  2. Open Command Prompt as an administrator.
  3. Navigate to <installation-directory>\bin.
  4. Run:
    backupDB.bat
  5. Locate the generated .ezip backup file in the Backup folder under the ADSelfService Plus installation directory.
  6. Copy the backup file to a safe location that will be accessible from the destination server.
  7. Take a folder-level backup (copy or ZIP archive) of the complete source ADSelfService Plus installation directory before continuing.

Step 4: Back up the required configuration and customization files

Retain a copy of the source conf folder as part of the migration backup. In addition, identify the following files and folders for selective restoration when applicable:

  • conf\ZohoCreator.properties
  • conf\customer-config.xml
  • The patch folder, if applicable
  • The resources folder, if customized language or text files are in use
  • The html, images, resources, and styles folders under webapps\adssp, if the portal has been customized
  • The server.xml, web.xml, and SSL keystore files (such as server.p12 or server.keystore) from the conf folder, if HTTPS is configured
  • The MPM folder, if mobile app deployment is in use
Important:

Keep the source customer-config.xml file. It is required when restoring the database to the new ADSelfService Plus installation.

Step 5: Install ADSelfService Plus on the destination server

  1. Install the exact ADSelfService Plus build used on the source server.
  2. Start ADSelfService Plus once to complete the installation.
  3. Stop ADSelfService Plus before restoring the database or configuration files.

Step 6: Prepare the destination for database restoration

Copy customer-config.xml from the source installation and rename the copied file to new-customer-config.xml.

Place new-customer-config.xml in the conf folder of the destination installation.

Important:

Preserve the destination installation's original customer-config.xml. Both this and new-customer-config.xml must be present before database restoration.

Step 7: Restore the database

  1. Copy the database backup file to the bin folder of the destination ADSelfService Plus installation.
  2. Open Command Prompt as an administrator.
  3. Navigate to <installation-directory>\bin.
  4. Run:
    restoreDB.bat <backup-file-name>.ezip -p <password> true

    For example:

    restoreDB.bat OfflineBackup_20250813160300.ezip -p 00306131805202_pukcaBenilffO true

    Replace the backup file name and password with the values for your backup.

  5. Wait for the database restore to complete.

Step 8: Restore the remaining configuration and customization files

  1. Copy ZohoCreator.properties from the source installation to the conf folder of the destination installation.
  2. Restore the following items if they were used on the source installation:
    • The patch folder, if applicable
    • The resources folder
    • The customized html, images, resources, and styles folders under webapps\adssp
    • server.xml, web.xml, and the SSL keystore
    • The MPM folder

Do not overwrite the entire destination conf folder with the source conf folder.

Step 9: Configure ADSelfService Plus as a Windows service

The migrated installation must run as a Windows service. If the service is not installed, run the installation command below.

  1. Open Command Prompt as an administrator.
  2. Navigate to <installation-directory>\bin.
  3. Run:
    InstallNTService.bat
  4. Open services.msc.
  5. Open the properties of the ManageEngine ADSelfService Plus service.
  6. On the Log On tab, configure the service account required by your deployment.
  7. Start the service.

Step 10: Update references to the old server

If the destination server uses a different hostname, IP address, port, or access URL, update any clients or integrations that still reference the source server.

For example, update the ADSelfService Plus server name and port used by deployed login agents, where applicable.

Also update any DNS, reverse proxy, or other environment-specific references that were configured to point directly to the source server.

Step 11: Apply the ADSelfService Plus license

  1. Log in to the ADSelfService Plus admin portal on the destination server.
  2. Click License in the top-right corner.
  3. Click Browse and select the original license.xml file. The saved installed license is named adventnetlicense.xml under lib.
  4. Click Upgrade.
  5. Confirm that the expected edition and licensed-user count are displayed.

Validation and confirmation

Complete the following checks before decommissioning the source server:

  1. Confirm that the ManageEngine ADSelfService Plus service starts successfully on the destination server.
  2. Log in to the ADSelfService Plus admin portal and confirm that the expected version and build are displayed.
  3. Verify that the expected domains, policies, enrollment information, reports, and other required product data are available.
  4. Confirm that any applicable portal, language, SSL, and mobile app customizations have been restored correctly.
  5. If HTTPS is configured, confirm that ADSelfService Plus is accessible through the expected HTTPS URL.
  6. Test the primary self-service functions used in your environment, such as:
    • Password reset
    • Account unlock
    • MFA, if configured
  7. If ADSelfService Plus login agents are deployed, verify that they can communicate with the destination server.
  8. Confirm that the product license information is displayed correctly.

After all validation checks pass, you can decommission the source ADSelfService Plus server.

Best practices

  • Take a fresh database backup immediately before the migration.
  • Keep a complete folder-level backup of the source ADSelfService Plus installation until the migration is validated.
  • Install the exact same ADSelfService Plus build on the destination rather than attempting to upgrade during the migration.
  • Restore only the required files from the source installation instead of replacing the destination installation's complete conf folder.