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.

Note:

The backup taken from previous Session Monitor using either Redis or Valkey can be restored in the Valkey available with the latest Session Monitor 5.2 since they have same backup format.
  1. Log in as 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 to newly installed Fraud Monitor. This will download all the Backup files from the remote server or shared drive on to your new Session Monitor server.
    For the Remote Server, transfer the Redis/Valkey Backup by running the following scp command in the newly installed Fraud Monitor Server:
    scp -r <User>@<Remote_Server_IP>:<path_to_Redis_backup_directory>/* /opt/oracle/ocsm/var/lib/valkey/
    For example,
    scp -r root@10.184.19.114:/root/ocsmBackup/redisBackup/*  /opt/oracle/ocsm/var/lib/valkey/
    

    or

    For Shared Drive, Transfer the Redis/Valkey Backup 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 /mnt/oracle/ocsmBackup/redisBackup/*  /opt/oracle/ocsm/var/lib/valkey/
  4. Provide the necessary permission for the added 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.