How to manually backup and restore the ADSelfService Plus database in the same application instance?
Objective
This article provides detailed step-by-step instructions on how to manually backup and restore the ADSelfService Plus database within the same application instance. This process is essential for:
Creating secure copies of the database for disaster recovery
Restoring data after accidental deletion or corruption
Maintaining periodic backups for compliance purposes
Prerequisite
Administrator privileges on the ADSelfService Plus server.
Before restoring the database, you must stop the ManageEngine ADSelfService Plus service. Failure to do so can result in a corrupted database.
Steps to backup and restore the database
Part 1: Backup the database
Follow these steps to create a manual backup of your application's database.
On the server hosting ADSelfService Plus, open Command Prompt as an administrator.
Navigate to the \bin directory within the ADSelfService Plus installation folder using the cd command. The default path is C:\Program Files\ManageEngine\ADSelfService Plus\bin.
Execute the backup script:
backupDB.bat The script will run and create a Backup folder inside the main installation directory (e.g., C:\Program Files\ManageEngine\ADSelfService Plus\Backup). Inside this folder, you will find the database backup stored as a compressed .ezip file (e.g., OfflineBackup_20250813160300.ezip).
Part 2: Manually restore the database
Follow these steps to restore the database from a previously created backup file.
Note: This action will overwrite your current database with the data from the backup file. Stop the ManageEngine ADSelfService Plus service. You can do this via the services.msc console.
Open Command Prompt as an administrator.
Navigate to the \bin directory using the cd command. The default path is C:\Program Files\ManageEngine\ADSelfService Plus\bin.
Execute the restoreDB.bat script using the following command format. You must provide the full path to the backup file.
restoreDB.bat "C:\Program Files\ManageEngine\ADSelfService Plus\Backup\your_backup_filename.ezip" -p <password> Example: restoreDB.bat "C:\Program Files\ManageEngine\ADSelfService Plus\Backup\OfflineBackup_20250813160300.ezip" -p <YourBackupPassword>
The password required for the restore command (-p <password>) depends on how your environment was configured when the backup was made.
Default password: If no custom password was set, the password is the reverse string of the backup filename excluding the .ezip extension. For a file named OfflineBackup_20250813160300, the password would be 00306131805202_pukcaBenilffO.
Admin-configured password: If a password was configured in the admin portal, you must use that password. This setting is located under Admin > Product Settings > Security and Privacy > Privacy Settings in the Encrypt database backup files field.
What if I forgot the password? If you have forgotten the admin-configured password, you can find it in the customer-config.xml file located in the <Installation_Dir>\conf folder. Please contact the ADSelfService Plus support team to decrypt the file and retrieve the password. Without the password or access to this file, the backup is unusable.
Once the restoration is complete, start the ManageEngine ADSelfService Plus service and log in to the portal to verify that the data has been restored correctly.
How to reach support
If the issue persists, contact our support team here.
New to ADSelfService Plus?
Related Articles
How to manually backup and restore the database in ADSelfService Plus?
Description You can manually backup and restore the database in ADSelfService Plus by executing certain commands. Resolution Steps to backup the database: Start the Command Prompt as an administrator (right-click Command Prompt and select Run as ...
Automatically backup the ADSelfService Plus database
Description The database used in ADSelfService Plus houses some important information that is crucial for the proper functioning of the tool. As a proactive measure against the loss of data, the ADSelfService Plus application provides you Automatic ...
How to migrate the ADSelfService Plus installation from one machine to another
Description This article will guide you through the process for migrating the ADSelfService Plus installation from one machine to another. Important: Before you start the migration process, please update your ADSelfService Plus installation to the ...
ADSelfService Plus product startup issues
What do you need to know before troubleshooting You need to have administrator access to ADSelfService Plus. When you experience an error with ADSelfService Plus, check if these prerequisites are satisfied: Install ADSelfService Plus as a service ...
Migrating from ADSelfService Plus 32-bit to ADSelfService Plus 64-bit
This article will help you migrate from ADSelfService Plus 32-bit version to the 64-bit version. Before you begin 32-bit to 64-bit migration is possible only between the same builds. For example, you cannot migrate from a 32-bit version of build 5310 ...