Restoring Redis/Valkey

This section describes the procedure for restoring the backup of Redis/Valkey data from Fraud Monitor. This section is applicable for Fraud Monitor only.

Your Redis/Valkey backup will be present in your new Session Monitor server in the Backup Path provided during the Redis Backup procedure. For more information, see Redis/Valkey Backup.

Note:

The backup taken from previous Session Monitor, having either Redis or Valkey version can be restored in the valkey available with the latest session monitor 5.2 since they have same backup format.
  1. Log in as the root to the console of your Fraud Monitor Server.
  2. Stop the valkey service by running the following command:
    systemctl stop pld-valkey
  3. Transfer the Redis/Valkey Backup file from the backup location by running the following cp command in the newly installed Fraud Monitor Server.
    cp -r <path_to_Redis_backup_directory>/* /opt/oracle/ocsm/var/lib/valkey/
    For example:
    cp -r /root/ocsmBackup/redisBackup/*  /opt/oracle/ocsm/var/lib/valkey/
  4. Provide the necessary permission for the dump.rdb file by running the following commands:
    chown valkey:valkey /opt/oracle/ocsm/var/lib/valkey/dump.rdb
    chown 644 /opt/oracle/ocsm/var/lib/valkey/dump.rdb
  5. Start the valkey service by running the following command:
    systemctl start pld-valkey
    valkey restore is now complete.