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 or Later, Creating a System Backup in Foresight Mobile Platform 23.05 or Later sections.

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

  1. Make sure that versions of docker client and docker server correspond to 26.1.xx, and versions of docker-compose corresponds to 1.29.xx:

% docker version

% docker-compose -v

If versions of docker client, docker server and docker-compose do not correspond to the specified ones, update them.

  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