./rke etcd snapshot-restore --name backup.db --config config/rancher-cluster-01.yml
INFO[0000] Restoring etcd snapshot backup.db
INFO[0000] Successfully Deployed state file at [config/rancher-cluster-01.rkestate]
INFO[0000] [dialer] Setup tunnel for host [172.21.203.11]
INFO[0000] [dialer] Setup tunnel for host [172.21.203.13]
INFO[0000] [dialer] Setup tunnel for host [172.21.203.12]
FATA[0005] failed to prepare backup: restoring S3 backups with no cluster level S3 configuration is not supported
实例
介绍如何创建Rancher数据备份以及如何在灾难情况下进行数据恢复
以RKE构建k8s集群 和 RKE 0.2.1版本为例:
k8s集群:
host
role
10.10.110.155 nginx 前端负载
10.10.110.156 controlplane,etcd,work