WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Snapshot
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Snapshot
editThe gateway snapshot API allows to explicitly perform a snapshot through the gateway of one or more indices (backup them). By default, each index gateway periodically snapshot changes, though it can be disabled and be controlled completely through this API.
NOTEL this API only applies when using shared storage gateway implementation, and does not apply when using the (default) local gateway.
All
editvar r = this.ConnectedClient.Snapshot();
Snapshot Index
editvar r = this.ConnectedClient.Snapshot("index");
Typed
editvar r = this.ConnectedClient.Snapshot<ElasticSearchProject>();