Is there way to take backup for multiple endpoints #14643
-
Hi Team, We are using below command to take etcd backup but this command works only in case of single node. Do we have any way in case we want to take backup for multiple nodes, meaning how we can provide multiple endpoints. ETCDCTL_API=3 etcdctl --endpoints=https://$IP:2379 --cacert=/etc/kubernetes/pki/etcd/ca.crt --cert=/etc/kubernetes/pki/etcd/client.crt --key=/etc/kubernetes/pki/etcd/client.key snapshot save /var/etcd-backup/etcd-snapshot-$(date +%Y-%m-%dT%H:%M).db |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
not really, but you can just write a bash script wrapper around this easily with a bit of json manipulation:
|
Beta Was this translation helpful? Give feedback.
not really, but you can just write a bash script wrapper around this easily with a bit of json manipulation: