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:
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:
If Foresight Mobile Platform 23.12 is used, use the elasticsearch_backup.py and create_elastic_backup_standalone.sh scripts contained in the standalone_compose_files_v23.12.<version number>.zip archive.
If Foresight Mobile Platform 23.05 is used, download the elasticsearch_backup.zip archive and unarchive it.
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.
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