Creating a Backup of Elasticsearch Logs in Foresight Mobile Platform 23.05 or Later

Creating a backup of Elasticsearch logs is available as a system function and as a separate process. To create a backup of Elasticsearch logs as a system function, see the Creating a System Backup in Foresight Mobile Platform 23.12, Creating a System Backup in Foresight Mobile Platform 23.05 sections.

To create a backup of Elasticsearch logs as a separate process in Foresight Mobile Platform 23.05 or later:

  1. Copy the elasticsearch_backup.py and create_elastic_backup_standalone.sh scripts and place them in the folder with the docker-compose.standalone.yml file:

  1. Start the elasticsearch_backup.py script using Python 3.6 or later:

python3 elasticsearch_backup.py backup

After this the elasticsearch_backup folder is created at the script level containing backup files of Elasticsearch logs.

NOTE. The logs created during script execution will not be saved to the backup file.

  1. Move the created elasticsearch_backup folder to the computer used for storing backups.

After executing the operations, a backup of Elasticsearch logs is created.

See also:

Creating a Backup and Restoring System | Restoring Elasticsearch Logs from Backup in Foresight Mobile Platform 23.05 or Later