Difference between revisions of "Etcdctl"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
− | etcd [[backup]] | + | == etcd [[backup]] == |
− | + | * <code>ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save /path/for/backup/snapshot.db</code> | |
− | + | Restore: | |
− | + | * <code>ETCDCTL_API=3 etcdctl snapshot restore</code> | |
Line 18: | Line 18: | ||
== See also == | == See also == | ||
* {{etcd}} | * {{etcd}} | ||
+ | |||
+ | [[Category:K8s]] |
Revision as of 10:34, 16 March 2021
This article is a Draft. Help us to complete it.
etcd backup
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
See also
Advertising: