1. 程式人生 > >etcd v3 備份恢復

etcd v3 備份恢復

enum home class lin etcd end pre line nap

備份數據:


  1. # ETCDCTL_API=3 etcdctl --endpoints localhost:2379 snapshot save snapshot.db

恢復數據:


  1. # ETCDCTL_API=3 etcdctl snapshot restore snapshot.db --name m3 --data-dir=/home/etcd_data

etcd v3 備份恢復