Skip to content

Instantly share code, notes, and snippets.

@georgegoh
Created November 14, 2017 03:50
Show Gist options
  • Select an option

  • Save georgegoh/c3d710226f943f529da77e53c26cfab8 to your computer and use it in GitHub Desktop.

Select an option

Save georgegoh/c3d710226f943f529da77e53c26cfab8 to your computer and use it in GitHub Desktop.
Snapshot all open and started indices in the ES cluster
oc rsh `oc get po -l component=es --show-labels -o name|head -n 1` \
curl --cacert /etc/elasticsearch/secret/admin-ca \
--cert /etc/elasticsearch/secret/admin-cert \
--key /etc/elasticsearch/secret/admin-key \
-XPUT 'https://logging-es:9200/_snapshot/log_backup/snapshot_20171114_1?wait_for_completion=true'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment