22.11.3 Executing the Snapshot Policy Manually

You can manually execute a snapshot policy to take an instant snapshot. Taking snapshots before making a configuration change, upgrading, or to test a new policy is useful. Manually executing a policy does not affect the configured schedule.

Instead of waiting for the policy to run, use SLM to take a snapshot using the configuration instantly by using the command curl -X PUT "http://{elastic_ip}:9200/_slm/policy/nightly-snapshots/_execute?pretty".

NOTE:The elastic_ip can be the IP address of the node (when you are in the dashboard cluster) or 127.0.0.1 (when you are not using a cluster configuration).