Backing Up Configuration and Binary Files

The Dispatcher Paragon solution consists of multiple components. Most of the configuration is stored in the database, which should be backed up regularly. However, for a complete backup, all configuration files or folders of a particular component need to be backed up to a safe location (e.g., network storage or backup tape).

Backing Up Configuration Files

To perform a configuration files backup, copy all files or folders in the Configuration files path column to a backup location. When copying, preserve the folder structure to avoid mixing up the configuration files.


Component

Configuration files path

Management Service

\DispatcherParagon\Management\conf

Management Service

\DispatcherParagon\Management\ims\application.properties

Management Service

\DispatcherParagon\Management\tomcat\conf

Management Service

\DispatcherParagon\Management\validator\conf

Management Service (if an embedded database is used)

\DispatcherParagon\Management\PGSQL-data\ *.conf

Spooler Controller

\DispatcherParagon\SPOC\bin\wrapper.conf

Spooler Controller

\DispatcherParagon\SPOC\conf

Spooler Controller

\DispatcherParagon\SPOC\distServer\config\distServer.conf

Spooler Controller

\DispatcherParagon\SPOC\EUI\conf

Spooler Controller

\DispatcherParagon\SPOC\EUI\ui-conf

Spooler Controller

\DispatcherParagon\SPOC\terminalserver\*.config

FlexiSpooler

\DispatcherParagon\FSP\Service\configuration.bin

FlexiSpooler

\DispatcherParagon\FSP\Service\*.config

Workflow Processing System

\DispatcherParagon\WPS\*.config

Workflow Processing System: Scanning scripts*

<path to scanning scripts>

Dispatcher Paragon Payment System

\DispatcherParagon\YPS\conf

Dispatcher Paragon Payment System

\DispatcherParagon\YPS\ps-conf

Dispatcher Paragon Payment System (if an embedded database is used on SPOC)

\DispatcherParagon\PGSQL-data\*.conf

Mobile Print

\DispatcherParagon\MPS\Service\conf

Mobile Print

\DispatcherParagon\MPS\Service\*.config

Mobile Integration Gateway

\DispatcherParagon\MIG\bin\connector\ConnectorService.exe.config

Mobile Integration Gateway

\DispatcherParagon\MIG\bin\connector\services\MdnsService.xml


Backing Up Binary Files (optional)

Backing up binary files is optional in standard deployment scenarios. Backing up binary files is recommended only in the case of a product customization.


Component

Binary files path

Management Service

\DispatcherParagon\Management\bin

Management Service

\DispatcherParagon\Management\dbsync

Management Service

\DispatcherParagon\Management\ldapreplicator

Management Service

\DispatcherParagon\Management\libs

Management Service

\DispatcherParagon\Management\utilities

Spooler Controller

\DispatcherParagon\SPOC\bin

Spooler Controller

\DispatcherParagon\SPOC\drivers

Spooler Controller

\DispatcherParagon\SPOC\extensions

Spooler Controller

\DispatcherParagon\SPOC\libs

Spooler Controller

\DispatcherParagon\SPOC\terminalserver

Spooler Controller

\DispatcherParagon\SPOC\server

Spooler Controller

\DispatcherParagon\SPOC\utilities

Spooler Controller

\DispatcherParagon\SPOC\versions

The Backup Script for Collecting Configuration Files

Should you want to automate the Dispatcher Paragon configuration files backup, you can use the following PowerShell script:

If you want to change the backup destination folder, modify the attribute backupfolder in the script accordingly.

Note that you should alter the script if you also want to back up Scanning scripts specific for your environment.

BackupConfigurationFiles.ps1
$backupfolder = $env:USERPROFILE + '\Desktop\DispatcherParagon_backup_' + (Get-Date).ToString('yyyy-MM-dd_hh-mm-ss')
 
$path = Get-WmiObject Win32_Service `
| Where-Object Name -Like "YSoft*" `
| Select -ExpandProperty "PathName" `
| Foreach-Object {(-split $_)[0].Trim("`"") -replace "\\DispatcherParagon\\.*", "\DispatcherParagon\"} `
| Measure-Object -Minimum `
| Select -ExpandProperty "Minimum"
function createBackup($backupfolder) {
if (Test-Path $path"Management\conf") {
New-Item -Path $backupfolder"\Management\conf" -Type directory | Out-Null
Copy-Item $path"Management\conf\*" $backupfolder"\Management\conf\" -Recurse
}
if (Test-Path $path"Management\ims") {
New-Item -Path $backupfolder"\Management\ims" -Type directory | Out-Null
Copy-Item $path"Management\ims\application.properties" $backupfolder"\Management\ims\"
}
if (Test-Path $path"Management\tomcat\conf") {
New-Item -Path $backupfolder"\Management\tomcat\conf" -Type directory | Out-Null
Copy-Item $path"Management\tomcat\conf\*" $backupfolder"\Management\tomcat\conf\" -Recurse
}
if (Test-Path $path"Management\validator\conf") {
New-Item -Path $backupfolder"\Management\validator\conf" -Type directory | Out-Null
Copy-Item $path"Management\validator\conf\*" $backupfolder"\Management\validator\conf\" -Recurse
}
if (Test-Path $path"Management\PGSQL-data\") {
New-Item -Path $backupfolder"\Management\PGSQL-data\" -Type directory | Out-Null
Copy-Item $path"Management\PGSQL-data\*.conf" $backupfolder"\Management\PGSQL-data\" -Recurse
}
if (Test-Path $path"SPOC\bin") {
New-Item -Path $backupfolder"\SPOC\bin" -Type directory | Out-Null
Copy-Item $path"SPOC\bin\wrapper.conf" $backupfolder"\SPOC\bin\" -Recurse
}
if (Test-Path $path"SPOC\conf") {
New-Item -Path $backupfolder"\SPOC\conf" -Type directory | Out-Null
Copy-Item $path"SPOC\conf\*" $backupfolder"\SPOC\conf\" -Recurse
}
if (Test-Path $path"SPOC\distServer\config") {
New-Item -Path $backupfolder"\SPOC\distServer\config" -Type directory | Out-Null
Copy-Item $path"SPOC\distServer\config\distServer.conf" $backupfolder"\SPOC\distServer\config\" -Recurse
}
if (Test-Path $path"SPOC\EUI\conf") {
New-Item -Path $backupfolder"\SPOC\EUI\conf" -Type directory | Out-Null
Copy-Item $path"SPOC\EUI\conf\*" $backupfolder"\SPOC\EUI\conf\" -Recurse
}
if (Test-Path $path"SPOC\EUI\ui-conf") {
New-Item -Path $backupfolder"\SPOC\EUI\ui-conf" -Type directory | Out-Null
Copy-Item $path"SPOC\EUI\ui-conf\*" $backupfolder"\SPOC\EUI\ui-conf\" -Recurse
}
if (Test-Path $path"SPOC\terminalserver") {
New-Item -Path $backupfolder"\SPOC\terminalserver" -Type directory | Out-Null
Copy-Item $path"SPOC\terminalserver\*.config" $backupfolder"\SPOC\terminalserver\" -Recurse
}
if (Test-Path $path"FSP\Service") {
New-Item -Path $backupfolder"\FSP\Service" -Type directory | Out-Null
Copy-Item $path"FSP\Service\configuration.bin" $backupfolder"\FSP\Service\"
Copy-Item $path"FSP\Service\*.config" $backupfolder"\FSP\Service\" -Recurse
}
if (Test-Path $path"WPS") {
New-Item -Path $backupfolder"\WPS" -Type directory | Out-Null
Copy-Item $path"WPS\*.config" $backupfolder"\WPS\" -Recurse
}
if (Test-Path $path"YPS\conf") {
New-Item -Path $backupfolder"\YPS\conf" -Type directory | Out-Null
Copy-Item $path"YPS\conf\*" $backupfolder"\YPS\conf\" -Recurse
}
if (Test-Path $path"YPS\ps-conf") {
New-Item -Path $backupfolder"\YPS\ps-conf" -Type directory | Out-Null
Copy-Item $path"YPS\ps-conf\*" $backupfolder"\YPS\ps-conf\" -Recurse
}
if (Test-Path $path"PGSQL-data") {
New-Item -Path $backupfolder"\PGSQL-data" -Type directory | Out-Null
Copy-Item $path"PGSQL-data\*.conf" $backupfolder"\PGSQL-data\" -Recurse
}
if (Test-Path $path"MPS\Service\conf") {
New-Item -Path $backupfolder"\MPS\Service\conf" -Type directory | Out-Null
Copy-Item $path"MPS\Service\conf\*" $backupfolder"\MPS\Service\conf\" -Recurse
Copy-Item $path"MPS\Service\*.config" $backupfolder"\MPS\Service\" -Recurse
}
if (Test-Path $path"MIG\bin\connector") {
New-Item -Path $backupfolder"\MIG\bin\connector" -Type directory | Out-Null
Copy-Item $path"MIG\bin\connector\ConnectorService.exe.config" $backupfolder"\MIG\bin\connector" -Recurse
Copy-Item $path"MIG\bin\connector\services\MdnsService.xml" $backupfolder"\MIG\bin\connector" -Recurse
  }
}
createBackup($backupfolder)