Redis/Valkey Backup

This section describes the procedure for taking the backup of Redis/Valkey data from Fraud Monitor. This section is applicable only if the node type is Fraud Monitor. The latest patches of 5.1 and 5.2 use Valkey instead of Redis, however, the backup procedures for both are similar.

  1. Login as root to the console of current Fraud Monitor Server.
  2. Open the redis-cli by running following commands:
    source /opt/oracle/ocsm/ocsm_env.sh
    redis-cli  
    or
    source /opt/oracle/ocsm/ocsm_env.sh
    valkey-cli
  3. From redis-cli or valkey-cli, take a dump of the latest Redis/Valkey dataset by typing following command:
    127.0.0.1:6379> SAVE

    This creates a dump.rdb file in the Redis/Valkey directory (/opt/oracle/ocsm/var/lib/redis/ or /opt/oracle/ocsm/var/lib/valkey/).

  4. Go to /opt/oracle/ocsm/var/lib/redis/ or /opt/oracle/ocsm/var/lib/valkey/ directory, and verify that the dump.rdb file has been created.
    [root@localhost ~]# cd /opt/oracle/ocsm/var/lib/redis/
    [root@localhost redis]# ls -lrt
    total 4
    -rw-r--r--. 1 redis redis 4090 Mar 26 23:08 dump.rdb
  5. Transfer the dump.rdb file to the backup location of the Target Machine (Remote Server or Shared Drive):
    1. For Remote Server:
      Transfer the dump.rdb file by running the following scp command:
      scp -r /opt/oracle/ocsm/var/lib/redis/dump.rdb <User>@<Target_Machine_IP>:<path to backup location>
      For example:
      scp -r /opt/oracle/ocsm/var/lib/redis/dump.rdb  root@1.2.3.4:/root/ocsmBackup/redisBackup/
      or
      scp -r /opt/oracle/ocsm/var/lib/valkey/dump.rdb <User>@<Target_Machine_IP>:<path to backup location>

      Here, the Remote Server is either the Remote Server selected as part of Strategy-1 OR the newly created Target machine as part of Strategy-2.

      Or

    2. For the Shared Drive:
      Transfer the dump.rdb file by running the following cp command:
      cp -r /opt/oracle/ocsm/var/lib/redis/dump.rdb <path to backup location>
      For example:
      cp -r /opt/oracle/ocsm/var/lib/redis/dump.rdb   /mnt/oracle/ocsmBackup/redisBackup/
      or
      cp -r /opt/oracle/ocsm/var/lib/valkey/dump.rdb <path to backup location>

    Backup is now complete. If the Backup procedure was used as part of Upgrading Session Monitor continue with the Upgrade Guide for further instructions; else proceed with the instructions in the Post Backup Tasks section.