Elastic Backup and Restore

Elastic Backup

The script elastic_backup.py is for elastic backup. To manually perform the elastic backup,
  1. Navigate to the scripts directory.
  2. Run the script using the application provided python binary, example
    /home/appviewx/appviewx/appviewx_dependency/appviewx_addons/Python_Linux/bin/python
  3. Before taking the backup we have to set up the Elasticsearch repo for storing the snapshots.
    /home/appviewx/appviewx/appviewx_dependency/appviewx_addons/Python_Linux/bin/python elastic_backup.py --setup elasticsearch_insight
  4. To take the backup run the command
    /home/appviewx/appviewx/appviewx_dependency/appviewx_addons/Python_Linux/bin/python elastic_backup.py --backup elasticsearch_insight
  5. Perform the following steps after taking the backup
    1. Navigate to the clusters node where the elasticsearch-insight is deployed
    2. Navigate to the installer path and create the tar of the elastic-insight-backup directory
    3. Copy the backup tar into the installer node.

Elastic Restore

The script elastic_restore.py is used for restore. To manually perform the elastic restore,
  1. Navigate to the scripts directory.
  2. Run the elastic_restore.py script to restore the backup
    /home/appviewx/appviewx/appviewx_dependency/appviewx_addons/Python_Linux/bin/python elastic_restore.py elasticsearch_insight
  3. Script will ask for the backup tar which was created manually. Provide the absolute path of the backup tar.
  4. Script will list all the available snapshots that has date and time in the naming. Select the backup which you want to restore.
  5. Provide the details of the indices you want to restore (follow the screenshot above).