How do I Backup UpdateEXPERT Premium 7.x?

Note: This article's parent is MSDE/SQL Datastore (7.x)

Backing up UpdateEXPERT Premium requires adequate free disk space to backup product directories, patch remediation database files, and MSDE database files. This can require several hundred megabytes of space.

This article assumes you are backing up and restoring on the same machine, without host-name changes and using the same product build.  Keep a copy of your UpdateEXPERT Premium serial number for re-installation.

This article has 3 sections, as follows:

Backing Up UpdateEXPERT Premium 7.x
Restoring UpdateEXPERT Premium 7.x
Backup/Restore Sample Scripts

Backing Up UpdateEXPERT Premium 7.x

Important: This procedure does not include backup/restore of the settings management (SecurityEXPERT) directories. This is because these directories are re-created when UpdateEXPERT is re-installed, and consist of web interface pages (ASP pages) used for settings management. If you wish to add these directories to your procedure, add the following:

C:\Inetpub\wwwroot\SBSCorporateClientWS
C:\Inetpub\wwwroot\SecurityEXPERT
C:\Inetpub\wwwroot\SEServerWS

Stop Services

  1. > net stop ueagent

  2. > net stop mssql$sbsdb

Copy Directories & Files:

  1. C:\Program Files\St Bernard Software\UpdateEXPERT\*

  2. C:\Program Files\Common Files\UpdateEXPERT\*

  3. %SYSTEMROOT%\UEAgent\*

  4. %SYSTEMROOT%\System32\Codec4ue3db.dll

Run AgentUtil (Leaf-Agent and Agent Settings Data):

  1. Use C:\Program Files\St Bernard Software\UpdateEXPERT\AgentInstaller\AgentUtil.exe (as explained in this AgentUtil article) to backup Leaf-Agent and Agent Settings information from the Registry.

Export these Registry Keys:

  1. HKEY_LOCAL_MACHINE/Software/St. Bernard Software/UpdateEXPERT

  2. HKEY_LOCAL_MACHINE/Software/St. Bernard Software/UEJobs

  3. HKEY_LOCAL_MACHINE/Software/St. Bernard Software/SecurityEXPERT

  4. HKEY_CURRENT_USER/Software/St. Bernard Software/UpdateEXPERT

Copy MSSQL$SBSDB Database Files:

  1. C:\Program Files\Microsoft Sql Server\MSSQL$SBSDB\Data\UEDataStore.mdf

  2. C:\Program Files\Microsoft Sql Server\MSSQL$SBSDB\Data\UEDataStore_log.ldf

  3. C:\Program Files\Microsoft Sql Server\MSSQL$SBSDB\Data\SEDataStore.mdf

  4. C:\Program Files\Microsoft Sql Server\MSSQL$SBSDB\Data\SEDataStore.ldf

Restoring UpdateEXPERT Premium 7.x

Re-install UpdateEXPERT:

Stop Services

  1. > net stop ueagent

  2. > net stop mssql$sbsdb

Restore Directories & Files:

  1. Overwrite directories with your backup files.

  2. Copy the Codec4ue3db.dll file to the System32 directory, overwriting the existing file.

Restore Registry Keys and Leaf-Agent Data:

  1. Restore registry and AgentUtil data.

Restore Database Files:

  1. Replace the UEDataStore and SEDataStore database files with the backup UEDataStore and SEDataStore database files.

Start and Launch:

  1. > net start ueagent (this will start mssql$sbsdb automatically).

  2. Launch the Console.

Backup/Restore Example Scripts

Note: These samples provided primarily to identify the components requiring backup/restore.  Be sure to modify and test them in a manner appropriate to your environment!

rem UEBackup.bat

net stop ueagent
net stop mssql$sbsdb

set Dest=D:\UEBACKUP

"C:\Program Files\St Bernard Software\UpdateEXPERT\AgentInstaller\AgentUtil.exe"

xcopy "C:\program files\st bernard software\updateexpert\*" "%Dest%\UEBACKUP_P\*" /E
xcopy "C:\program files\common files\updateexpert\*" "%Dest%\UEBACKUP_C\*" /E
xcopy "%SystemRoot%\UEAgent\*"  "%Dest%\UEAgent\*" /E
xcopy %SystemRoot%\System32\codec4ue3dbs.dll %Dest%

xcopy "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data\UEDataStore.mdf" %Dest%
xcopy "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data\UEDataStore_log.ldf" %Dest%
xcopy "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data\SEDataStore.mdf" %Dest%
xcopy "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data\SEDataStore.ldf" %Dest%

regedit -e %Dest%\HKLMUE.reg "HKEY_LOCAL_MACHINE\SOFTWARE\St. Bernard Software\UpdateEXPERT"
regedit -e %Dest%\HKLMUEJ.reg "HKEY_LOCAL_MACHINE\SOFTWARE\St. Bernard Software\UEJobs"
regedit -e %Dest%\HKLMSE.reg "HKEY_LOCAL_MACHINE\SOFTWARE\St. Bernard Software\SecurityEXPERT"
regedit -e %Dest%\HKCUUE.reg "HKEY_Current_User\SOFTWARE\St. Bernard Software\UpdateEXPERT"

net start ueagent

This is the backup script.

First, we stop UEAgent and the SBSDB SQL instance.

"Dest" is where you want to write your backup files. Set this variable according to your needs.

AgentUtil is invoked to make it easy to backup Leaf-Agent information.

xcopy is used to backup product directories and the UEDataStore & SEDataStore sql database files.

regedit -e
exports registry key information.

Starting UEAgent also starts the SBSDB sql instance.

rem UERestore.bat

net stop ueagent
net stop mssql$sbsdb

set Source=D:\UEBACKUP

"C:\Program Files\St Bernard Software\UpdateEXPERT\AgentInstaller\AgentUtil.exe"

xcopy "%Source%\UEBACKUP_P\*" "C:\program files\st bernard software\updateexpert"  /E /Y
xcopy "%Source%\UEBACKUP_C\*" "C:\program files\common files\updateexpert"  /E /Y
xcopy "%Source%\UEAgent\*" "%SystemRoot%\UEAgent"   /E /Y
xcopy "%Source%\codec4ue3dbs.dll" "%SystemRoot%\System32" /Y

xcopy "%Source%\UEDataStore.mdf" "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data" /Y
xcopy "%Source%\UEDataStore_log.ldf" "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data" /Y
xcopy "%Source%\SEDataStore.mdf" "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data" /Y
xcopy "%Source%\SEDataStore.ldf" "C:\Program files\Microsoft Sql Server\MSSQL$SBSDB\data" /Y

regedit -s %Source%\HKLMUE.reg  
regedit -s %Source%\HKLMUEJ.reg  
regedit -s %Source%\HKLMSE.reg  
regedit -s %Source%\HKCUUE.reg  

net start ueagent

This is the restore script.

First, we stop UEAgent and the SBSDB SQL instance.

"Source" is where you find the files to restore. Set this variable according to your needs.

AgentUtil is invoked to make it easy to restore Leaf-Agent information.

xcopy is used to restore product directories and the UEDataStore & SEDataStore sql database files.

regedit -s
imports the previously backed-up registry key information..

Starting UEAgent also starts the SBSDB sql instance.