<p>I entered the etcd container:</p>
<pre><code>kubectl -n kube-system exec -it etcd-k8scp -- sh
</code></pre>
<p>The I try to backup the container like explained in the <a href="https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/#built-in-snapshot" rel="nofollow noreferrer">K8s docs</a></p>
<pre><code>ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save snapshotdb
</code></pre>
<p>I get this error:</p>
<blockquote>
<p>Error: unknown command &quot;save&quot; for &quot;etcdctl&quot;</p>
</blockquote>
<p>What's wrong with my command?</p>

guettli
<p>I forgot to set <code>$ENDPOINT</code>.</p>
<p>If it is empty, then etcdctl gets this:</p>
<pre><code>ETCDCTL_API=3 etcdctl --endpoints snapshot save snapshotdb
</code></pre>
<p>etcdctl thinks I want to address the endpoint called &quot;snapshot&quot; and execute the command &quot;save&quot;</p>
<p>:-)</p>
