Back up and restore content data

User Role: Administrator

To ensure that you always have up-to-date copies of the data that the IDOL Server stores, we recommend that you back up the IDOL Server at regular intervals. This section describes two methods to back up and restore content data:

  • Enabling scheduled backup

    To enable scheduled backup, follow these steps:

    1. Open the <Smart Analytics Installation>\Content<x>\Content<x>.cfg files of the content servers.
    2. Locate the [schedule] section, and then insert the following lines:

      [Schedule]
      Backup=true
      BackupCheckIndexUpdates=TRUE
      BackupCompression=true
      BackupTime=00:00
      BackupInterval=24
      BackupMaintainStructure=true
      BackupRetryAttempts=3
      BackupRetryPause=5
      NumberOfBackups=3
      BackupDir0=E:\DataIndex_Backup0
      BackupDir1=E:\DataIndex_Backup1
      BackupDir2=E:\DataIndex_Backup2
      

      Note  

      • Modify the values if needed.
      • If you set NumberOfBackups to 7, the first 7 backup schedules create a new backup file. The 8th backup operation overwrites the first backup, the 9th backup operation overwrites the second backup, and so on.
    3. Restart the content servers.

    To restore the data backed up using this method, you can use the RestoreServer action, which restores a server’s state from a backup created by the BackupServer action. To restore backed up data, use the command RestoreServer as follows:

    http://IdolContentServe:aciport/action=RestoreServer&filename=E:/DataIndex_Backup2/filename.zip

    Example:

    http://localhost:30010/action=RestoreServer&filename=C:/backups/filename.zip

    Note  

    • This command sends the action to content servers.
    • This is an administrative action that can only be sent from IDOL Server's AdminClients (which are set in the IDOL Server configuration file's [Server] section).
    • This restore command should be executed in SAA (Smart Analytics Assistant).
  • Using commands

    To back up content data, you can export all contents index and category files with commands. To do this, run the following actions by using the Smart Analytics Assistant (SAA) utility:

    To export contents index:

    http://<idolhost>:<MainIDOLServerIndexPort>/DREEXPORTIDX?filename=c:\BackupFolderName\File&HostDetails=true

    To export category files:

    http://<idolhost>:<MainIDOLServerPort>/action=CategoryExportToXML&Output=File&FileName=c:\\<folder>\\<subfolder>\\<xxx.xml>&IncludeCatID=true

    Note  

    • By default, the port number for <MainIDOLServerIndexPort> is 9001.
    • By default, the port number for <MainIDOLServerPort> is 9000.

    To restore the content data backed up using this method, you can run the following action by using Smart Analytics Assistant (SAA) utility:

    http://<idolhost>:<ACIPort>/DREADD?/<path>/<xxx.idx.gz>&CreateDatabase=True

    For example:

    http://<idolhost>:<Content1indexport>/DREADD?/home/Jora/BackupFolderName/FilePrefix-SGDLITVM0772-10010-0.idx.gz&CreateDatabase=True

    http://<idolhost>:<Level2proxyindexport>/DREADD?/home/Jora/BackupFolderName/FilePrefix-SGDLITVM0772-30010-0.idx.gz&CreateDatabase=True

    http://<idolhost>:<Level2proxyindexport>/DREADD?/home/Jora/BackupFolderName/FilePrefix-SGDLITVM0772-30020-0.idx.gz&CreateDatabase=True

    Note  

    • By default, the port number for <Content1IndexPort> is 10011.
    • By default, the port number for <Level2proxyIndexPort> is 20011.