<p>I want to create a snapshot of the etcd instance. The etcd instance is running etcd version 3.3.10. I used <code>ETCDCTL_API=3</code> in the following command:</p>
<pre class="lang-sh prettyprint-override"><code>ETCDCTL_API=3 etcdctl 
--endpoints https://[127.0.0.1]:2379 
--cacert /opt/ca.crt 
--cert /opt/etcd-client.crt 
--key=/opt/etcd-client.key 
  snapshot save &gt; /var/lib/backup/etcd-snapshot.db
</code></pre>
<p>Which version of ETCDCTL_API should I use? Should I use the highest version? </p>

O.Man
<p>&quot;<code>etcdctl snapshot save /path/file_name.db</code>&quot; command works only when the api version is set to 3</p>
<pre><code>export ETCDCTL_API=3
</code></pre>
<p>there no option available in api version 2 to run the command with the snapshot save option.</p>
