Restoring Essential Session Monitor Files

This section describes the procedure for restoring the backup of essential files and folders of Session Monitor. This section is applicable only if the node type is Mediation Engine.

The following files and folders are restored as a part to below script:
  • All local.conf files from directory /opt/oracle/ocsm/etc/iptego/
  • Savepoints Directory - /opt/oracle/ocsm/var/vsi/savepoints/
  • Traces Directory - /opt/oracle/ocsm/var/vsi/dumps/
  • Saved Calls Directory - /opt/oracle/ocsm/var/vsi/saved/
  • Uploaded Apps Directory - /opt/oracle/ocsm/var/vsi/pscripts/upload/
  • cdr, mdr, tdr Directory - /opt/oracle/ocsm/var/vsi/ftp/
  • CSV Exports Directory - /opt/oracle/ocsm/var/vsi/exports/
  • Packet Inspector Search Result Directory - /opt/oracle/ocsm/var/vsi/pint_results/
  • Version Files - /opt/oracle/ocsm/etc/iptego/version and /opt/oracle/ocsm/etc/iptego/version.history
  1. Get the backupAndRestoreOtherFiles.sh script present in the Session Monitor installation software RPM .Zip bundle (ocsm-5.2.0.0.5-GA.zip) under the scripts/Backup and Restore Scripts/ directory.
  2. Copy the script to the /root/ directory of your newly installed Session Monitor Server.
  3. If you are planning to restore the backup from a Remote Server, make sure you have enabled passwordless login by transferring SSH key from Session Monitor Server to Remote Server. For more information, see Generate SSH Key.
  4. Run this command to provide the necessary permissions for the script:
    chmod +x backupAndRestoreOtherFiles.sh
  5. To begin restoring essential Session Monitor files, execute the script:
    ./backupAndRestoreOtherFiles.sh -a restore
    This will download all the backup files from Remote Server or Shared Drive on to your new Session Monitor Server. You can choose the location of your backup (Remote Server or Shared Drive) when prompted. The script will ask for IP address and the Path of the backup based on your input.

    Example for Remote Server:
    [root@ocsm-server ~]# ./backupAndRestoreOtherFiles.sh -a restore
     
    Starting Restore of Essential OCSM Files...
     
    Where is your Essential OCSM Files Backup Data present ?
         1. Remote Server
         2. Mounted Disk
    Your Input is:
    1
    Remote Server's IP:
    10.184.19.114
    Remote Server's User (used to ssh):
    root
    Backup Directory Location of Remote Server:
    /root/ocsmBackup/ocsmFilesBackup/
     
    Restoring backup in progress ! Please wait until finished...

    Example for mounted disk

    [root@ocsm-server ~]# ./backupAndRestoreOtherFiles.sh -a restore
     
    Starting Restore of Essential OCSM Files...
     
    Where is your Essential OCSM Files Backup Data present ?
         1. Remote Server
         2. Mounted Disk
    Your Input is:
    2
    Backup Path of Mounted Disk:
    /mnt/oracle/ocsmBackup/ocsmFilesBackup/
     
    Restoring backup in progress ! Please wait until finished...

    Note:

    During the restore process, If copying of any backup files are interrupted due to any network connection issue, system restarts, etc. Re-run the script to resume copying.