/**
* Méthode permettant la création du snapshot
*
* @param string $repositoryName Le nom du répertoire
* @param string $location Le chemin du répertoire
* @param string $snapshotName Le nom du snapshot
*
* @return bool Création effectuée ou non
*/
public function snapshot($repositoryName, $location, $snapshotName)
{
// register the repository
$this->registerRepository($repositoryName, $location);
if ($this->getSnapshot($repositoryName, $snapshotName)) {
$this->deleteSnapshot($repositoryName, $snapshotName);
}
$response = $this->_snapshot->createSnapshot($repositoryName, $snapshotName, array("indices" => $this->_index->getName()), true);
return $response->isOk();
}