Created
November 14, 2017 03:50
-
-
Save georgegoh/c3d710226f943f529da77e53c26cfab8 to your computer and use it in GitHub Desktop.
Snapshot all open and started indices in the ES cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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