cnbr 备份还原
cnbr 备份
# 源集群,查看备份 id
kubectl -n cnbr-agent get backups
# 查看备份状态
kubectl -n cnbr-agent describe backup <backup_id>
# 进入源集群 cnbr pod 中查看备份 id 详情
kubectl -n cnbr-agent exec -it <cnbr_pod_name> -- /bin/bash
cd /
./cnbr describe backup <backup_id>
# 查看蓝图 cr 情况
kubectl -n cnbr-agent get actionsets
kubectl -n cnbr-agent describe actionsets <action_id>
# 查看备份数据情况
kubectl -n cnbr-agent get podvolumebackups
kubectl -n cnbr-agent describe podvolumebackups <podvolumebackup_id>
cnbr 还原失败排查
# 目标集群,查看还原 id
kubectl -n cnbr-agent get restores
# 查看还原状态
kubectl -n cnbr-agent describe restore <restore_id>
# 进入目标集群 cnbr pod 中查看还原 id 失败原因
kubectl -n cnbr-agent exec -it <cnbr_pod_name> -- /bin/bash
cd /
./cnbr describe restore <restore_id>
# 查看还原数据情况
kubectl -n cnbr-agent get podvolumerestores
kubectl -n cnbr-agent describe podvolumerestores <podvolumerestore_id>