$_client
$_client : \Elastica\Client
Class Snapshot.
$_client : \Elastica\Client
__construct(\Elastica\Client $client)
\Elastica\Client | $client |
registerRepository(string $name, string $type, array $settings = array()) : \Elastica\Response
Register a snapshot repository.
string | $name | the name of the repository |
string | $type | the repository type ("fs" for file system) |
array | $settings | Additional repository settings. If type "fs" is used, the "location" setting must be provided. |
createSnapshot(string $repository, string $name, array $options = array(), boolean $waitForCompletion = false) : \Elastica\Response
Create a new snapshot.
string | $repository | the name of the repository in which this snapshot should be stored |
string | $name | the name of this snapshot |
array | $options | optional settings for this snapshot |
boolean | $waitForCompletion | if true, the request will not return until the snapshot operation is complete |
getSnapshot(string $repository, string $name) : array
Retrieve data regarding a specific snapshot.
string | $repository | the name of the repository from which to retrieve the snapshot |
string | $name | the name of the desired snapshot |
deleteSnapshot(string $repository, string $name) : \Elastica\Response
Delete a snapshot.
string | $repository | the repository in which the snapshot resides |
string | $name | the name of the snapshot to be deleted |
restoreSnapshot(string $repository, string $name, array $options = array(), boolean $waitForCompletion = false) : \Elastica\Response
Restore a snapshot.
string | $repository | the name of the repository |
string | $name | the name of the snapshot |
array | $options | options for the restore operation |
boolean | $waitForCompletion | if true, the request will not return until the restore operation is complete |
request(string $path, string $method = \Elastica\Request::GET, array $data = array(), array $query = array()) : \Elastica\Response
Perform a snapshot request.
string | $path | the URL |
string | $method | the HTTP method |
array | $data | request body data |
array | $query | query string parameters |