Difference between revisions of "Etcdctl"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 5: | Line 5: | ||
== etcd [[backup]] == | == etcd [[backup]] == | ||
Create [[snapshot]]: | Create [[snapshot]]: | ||
− | * <code>ETCDCTL_API=3 etcdctl --endpoints $ENDPOINT snapshot save /path/for/backup/snapshot.db</code> | + | * <code>ETCDCTL_API=3 etcdctl [[--endpoints]] $ENDPOINT snapshot save /path/for/backup/snapshot.db</code> |
Restore: | Restore: |
Revision as of 09:11, 10 April 2021
This article is a Draft. Help us to complete it.
etcd backup
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"}
See also
Advertising: