Redis Backup

This section describes the procedure for taking the backup of Redis data from Fraud Monitor. This section is applicable only if the node type is Fraud Monitor.

  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
  3. From redis-cli, take a dump of the latest Redis dataset by typing following command:
    127.0.0.1:6379> SAVE

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

  4. Go to /opt/oracle/ocsm/var/lib/redis/ 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/

      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/

    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.