Backup and restore - CustomerID

Ubisecure CustomerID is used to manage user and role related data stored in Ubisecure Directory. Additionally, it uses a PostgreSQL database to store workflow related data. 

Most files related to the configuration and to the internal database, and other files, are stored in the installation directory of Ubisecure CustomerID. This makes the backup procedure simple as only one directory needs to be backed up. PostgreSQL and WildFly need to be handled separately from the Ubisecure CustomerID application. 

Back up the installation directory of Ubisecure CustomerID always when the product configuration has been changed or the product has been updated or upgraded.
The next chapters describe how to backup and restore Ubisecure CustomerID application.

Ubisecure CustomerID Backup

The easiest way to backup Ubisecure CustomerID is to stop the Ubisecure CustomerID server service and copy the installation directory to the backup destination. This will copy most of the configurations and files needed in the restore operation.

If a restore is needed, the Ubisecure CustomerID directory can be copied from the backup destination back to the server and can be used as is.

The procedure is as follows:

  1. Stop the Ubisecure CustomerID server service:

    Windows:

    C:\>net stop wildfly

    Linux:

    systemctl stop wildfly
  2. Back up the installation directory:

    Windows:

    xcopy /e/q/y "C:\Program Files\Ubisecure\customerid" <BACKUP_DIRECTORY>

    Linux:

    cp -r /usr/local/ubisecure <BACKUP_DIRECTORY>

Where <BACKUP_DIRECTORY> is the path to the backup target, for example, D:\backups\25_10_2010.

Ubisecure CustomerID Restore

First restore PostgreSQL and WildFly.

When a Ubisecure CustomerID application backup is restored to a fresh operating system installation, the steps are reversed compared to the backup procedure:

  1. Restore the installation directory:

    Windows:

    xcopy /e/q/y <BACKUP_DIRECTORY> "C:\Program Files\Ubisecure\customerid"

    Linux:

    cp -r <BACKUP_DIRECTORY> /usr/local/ubisecure
  2. Stop the Ubisecure CustomerID server service:

    Windows:

    C:\>net start wildfly

    Linux:

    systemctl start wildfly