Difference between revisions of "Etcdctl"
Jump to navigation
Jump to search
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
<code>etcdctl</code> command line client for [[etcd]] | <code>etcdctl</code> command line client for [[etcd]] | ||
* http://manpages.org/etcdctl | * http://manpages.org/etcdctl | ||
+ | |||
+ | [[etcdctl snapshot save]] | ||
Line 20: | Line 23: | ||
== Related terms == | == Related terms == | ||
− | * [[CKA]]: [[Implement etcd backup and restore]] | + | * [[CKA v1.23]], [[CKA v1.20]]: [[Implement etcd backup and restore]] |
== See also == | == See also == |
Latest revision as of 06:56, 20 July 2022
etcdctl
command line client for etcd
etcdctl snapshot save
etcd backup[edit]
Create snapshot:
ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save /path/for/backup/snapshot.db
Restore:
ETCDCTL_API=3 etcdctl snapshot restore
etcdctl snapshot save Error: snapshot save expects one argument
etcdctl snapshot save YOUR_NEW_SNAPSHOT
etcdctl snapshot save /path/backup_file.txt {"level":"info","ts":1615891954.3276968,"caller":"snapshot/v3_snapshot.go:110","msg":"created temporary db file","path":"/path/backup_file.txt"}
Related terms[edit]
See also[edit]
Advertising: