Belajar Sendiri

Commands

etcdutl

etcdutl [--write-out=table|json] snapshot status <file>

Risk: Safe

What it does

Reads a snapshot file: its hash, revision, keys and size. In etcd 3.7, etcdctl no longer does this.

When to use it

Right after a save, and before any restore. Trust a copy only after you check it.

Example

$ etcdutl --write-out=table snapshot status /opt/backup.db

Is this copy healthy? Show it as a table.