concept
Snapshots compaction and recovery
etcd retains historical key versions so clients can request prior states or watch changes. Compaction discards superseded history through a chosen revision; it does not delete the current value of a key. Clients that need compacted history must recover with a fresh current-state read. Defragmentation is a different maintenance operation: it can return unused backend file space to the filesystem. Live defragmentation can block operations on the target member; schedule it with an approved runbook rather than running it across all members at once.
Formal Syntax & Structure
kubernetes syntaxkubernetes
etcdutl snapshot status <lab-snapshot-file>Working Example
Example Snippetkubernetes
Synthetic bound: snapshot=1200, max observed etcd revision=1700bump=700 → restored revision=1900 (>1700)mark compacted: planned; stale clients must relistChanges after snapshot are still absent.