title: How to create a snapshot in Nest?
body: <p>I need to backup my indexes from elasticsearch, and then restore it. I can't find an example. I tried to write something like this:</p>
  
  <pre><code>public virtual ISnapshotResponse BackUp()
  {
      return _client.Snapshot("D:\\snapshots", "1", descriptor =&gt; descriptor
          .Indices(_indexString)
          .IncludeGlobalState(false));
  }
  </code></pre>
  
  <p>But it has invalid response because of <code>repository</code>parameter.</p>
  
  <p>Please, help me to create a snapshot and then restore my indexes.</p>