To finalize this practical exercise, here are some links that could be useful:
In this lab, we will set up a backup system for our index.
Add the following configuration to the elasticsearch.yml configuration file:
path:
repo:
- ./backups
Then restart your node.
You can then create a repository named my fs_backup of type fs.
Take a snapshot of the person-v3 index in this repository.
Once this snapshot is taken, perform a restore to a new index that we will name similarly but suffixed with _backup.
- You can also use the
cluster statsAPI to view statistics about our cluster and try to understand their meaning.
As a bonus part, you can:
- Repeat the same process but from the Kibana interface.
- Create and execute a SLM (Snapshot Lifecycle Management) policy.
To execute an SLM without waiting, you can use the _execute endpoint:
POST _slm/policy/nightly-snapshots/_execute