Skip to content

Data Backup

Steps to take a backup of data

  1. Take a backup of saved objects.

    • Navigate to ARS UI > Dashboard Management > Saved Objects > Export. Data will be downloaded in json form.

    • Backend Backup: On the ARS server, create a folder, e.g, backup, in the /root

  2. Back up configuration files of HySecure, HyWorks and metricbeat configuration and pipeline.yml file.

    • Create conf.d folder in the backup folder.

    cp /etc/logstash/conf.d/* /root/backup/conf.d (all files in conf.d will be copied)

    cp /etc/logstash/pipelines.yml /root/backup/conf.d

  3. Backup yaml files.

    cp /etc/opensearch/opensearch.yml /root/backup/

    cp /etc/opensearch-dashboards/opensearch-dashboards.yml

  4. If the Email Reporting is in use, then take a backup of the config file.

    • Create a folder for reporting in the backup.

    cp reporting/distribution/utilities/config.json /root/backup/reporting/

  5. Backup of all indexes (DATA Backup)

    • Create a folder named logbackup in the backup.

    • To import data from this index, use the following command:

    NODE_TLS_REJECT_UNAUTHORIZED=0 elasticdump --input=https://admin:{password}@localhost:9200/indexname --output=/{path}/indexname.json --type=data

E.g. to take a monthly backup:

NODE_TLS_REJECT_UNAUTHORIZED=0 elasticdump --input=https://admin:{password}@localhost:9200/hysecure-2024.09.* --output=/root/backup/logbackup/hysecure-2024.09.json --type=data

This document contains all the data for the HySecure index from September. You can also access the previous month’s data for all indexes in a similar format.

  • {password}: Password of Elastic.

  • Indexname: Name of the index which you want to import, e.g., hysecure-2024.10.04

  • {path}: Path of the folder in which you want to dump json file of data.

  • indexname.json: Specify the name for json file with which data will be imported.

Note

Verify the data in the specified folder intended for the data dump.