etcdctl snapshot save
# 保存数据快照
参数选项
--endpoints
:指定要操作的数据端点。例如--endpoints=https://127.0.0.1:2379
--cacert
:指定 CA 证书文件--cert
:指定客户端证书文件--key
:指定客户端密钥文件--data-dir
:恢复数据时要保存到的目录
etcdctl snapshot save <文件名>
# 示例
etcdctl snapshot save snap1.db
1
2
3
4
2
3
4
编辑 (opens new window)