Is it possible to manually take snapshot from one index? I found from the documentation that it is be possible to snapshot all indices, but I want just one index backed up.
PUT _snapshot/my_repository/%3Cmy_snapshot_%7Bnow%2Fd%7D%3E
Is it possible to manually take snapshot from one index? I found from the documentation that it is be possible to snapshot all indices, but I want just one index backed up.
PUT _snapshot/my_repository/%3Cmy_snapshot_%7Bnow%2Fd%7D%3E
Hi @tapiojaa, You can take manual snapshot for specific indices.
The following request will take a snapshot of index_1
and index_2
.
PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true
{
"indices": "index_1,index_2",
"ignore_unavailable": true,
"include_global_state": false,
"metadata": {
"taken_by": "user123",
"taken_because": "backup before upgrading"
}
}
Thank you very much, it works. I was pretty sure that this is possible
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.