Windows-based Integration Server. Working with a backup copy
You can save a backup copy of the database, settings and certificate of the Windows-based Integration Server automatically while updating the Integration Server using the Kaspersky Security Components Installation Wizard.
The backup copy of the database and settings of the Integration Server can be deleted automatically when removing the Integration Server, or you can delete it manually. The default path is: %ProgramData%\Kaspersky Lab\VIISLA\Backup\VIISData(1). The number in the folder name increases by 1 with each subsequent attempted update.
If errors occur in the operation of the Integration Server after an update, you can use the backup copy of the database and settings to restore the previous version of the Integration Server and the saved data.
To perform the procedure, you need a user account that is a member of the local administrators group.
To revert the Integration Server to the previous version:
If you saved a backup copy of your data in the default folder (%ProgramData%\Kaspersky Lab\VIISLA\Backup), copy this folder to another location outside the %ProgramData%\Kaspersky Lab\VIISLA folder.
Remove the Integration Server and Integration Server Console installed on the device without preserving data.
Install the previous version of the Integration Server and Integration Server Console.
Restore the Integration Server database and settings from the backup copy manually or using a script.
Before using the script, please read the terms of the End User License Agreement between you and Kaspersky. The license.txt file with the text of the End User License Agreement is inside the archive with the script. By using the script, you accept the terms of the End User License Agreement. If you do not accept the terms of the End User License Agreement, you may not use the script.
Get the archive with the script from Technical Support and extract it.
Run the PowerShell command prompt as administrator.
Run the following command:
recover_viis_config_from_backup.ps1 "<path to folder with backup copies>"
where <path to folder with backup copies> is the path to the folder containing the Integration Server certificate and the backup copy of the Integration Server database and settings.
For example, if you saved the backup copy to the C:\Backup folder, the command looks like this:
Find out the port number for connecting to the Integration Server:
Go to the folder containing the Integration Server certificate and the backup copy of the Integration Server database and settings.
Open the appsettings.json configuration file and find the Integration Server port number:
"Server": {
"Address": "https://0.0.0.0:<Integration Server port>"
If the Integration Server is running, stop it:
net stop viisla
Delete the contents of the %ProgramData%\Kaspersky Lab\VIISLA folder. To delete it, grant the current user from the administrators group owner rights to the %ProgramData%\Kaspersky Lab\VIISLA folder and its contents.
Copy the following Integration Server databases from the backup folder to the %ProgramData%\Kaspersky Lab\VIISLA\db\ folder:
viisla.db
protectionPeriods.db
Grant the NT SERVICE\VIISLA user full rights to access the %ProgramData%\Kaspersky Lab\VIISLA folder and its contents.
Copy the following Integration Server configuration files from the backup folder to the %Program Files(x86)%\Kaspersky Lab\Kaspersky VIISLA\ folder:
appsettings.json
appsettings.logging.json
appsettings.certificate_manager.json
Open the registry editor, go to the HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\KasperskyLab\VIISLA\Server\Public key and in the ServicePortProperty parameter specify the Integration Server port number that you received in the first step of the instructions.