RESTORE/ROLLBACK, IF REQUIRED
Assuming that a backup was created for the database, keystores and openLDAP directory, a restore script can be executed to rollback to the previous state. Rollback for the keystores and database can be executed as "strongkey" user. However, restoring LDAP requires "root" access.
Restore - database and keystores
Follow the steps below to rollback the database and the keystores:
Login as "strongkey" user and open a terminal
Unzip the add-domain-v4.x.zip file to the current directory, if it already doesn't exist:
shell> unzip add-domain-v4.x.zip -d .
Edit the restore-backup script using a preferred text editor
shell> vi restore-backup.sh
The script takes the following arguments.
shell> restore-backup.sh <path-to-backup-directory-name>
It also includes configurable values. Please change the passwords if not using the default ones.
Execute the restore-backup.sh script as follows:
shell> ./restore-backup.sh /usr/local/strongkey/skfsbackups/add-domain-<did>-<date>
The script will restore the keystores and database.
Restore - openLDAP
Follow the steps to rollback are as follows:
Login as "root" user and open a terminal
Go to the folder where the add-domain-v4.x.zip file was extracted:
shell> cd /usr/local/strongkey/add-domain-v4.x
Edit the restore-LDAP script using a preferred text editor
shell> vi restore-LDAP.sh
The installation script contains configurable values. Please change the passwords if not using the default ones.
The script takes the following arguments:
shell> restore-LDAP.sh <path-to-backup-directory-name>
Execute the restore-backup.sh script as follows:
shell> ./restore-LDAP.sh /usr/local/strongkey/skfsbackups/add-domain-<did>-<date>
The script will restore the openLDAP Directory.