Version v3.6-DRAFT of the documentation is in DRAFT status. For the latest stable documentation, see v3.5.
snapshot
to save point-in-time snapshot of etcd database:
etcdctl --endpoints=$ENDPOINT snapshot save DB_NAME
--endpoints=[127.0.0.1:2379], gRPC endpoints
Snapshot can only be requested from one etcd node, so --endpoints
flag should contain only one endpoint.
-w, --write-out string set the output format (fields, json, protobuf, simple, table) (default "simple")
ENDPOINTS=$HOST_1:2379
etcdctl --endpoints=$ENDPOINTS snapshot save my.db
Snapshot saved at my.db
etcdutl --write-out=table snapshot status my.db
+---------+----------+------------+------------+
| HASH | REVISION | TOTAL KEYS | TOTAL SIZE |
+---------+----------+------------+------------+
| c55e8b8 | 9 | 13 | 25 kB |
+---------+----------+------------+------------+
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.