-
-
Save ualmtorres/202b7aedb4a8c2994d22c0f7ae68adcf to your computer and use it in GitHub Desktop.
Velero - Backup and restore in the same cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Creamos un backup del namespace | |
velero backup create demo-backups-$(date +'%Y%m%d-%H%M') \ | |
--kubeconfig cluster-terraform-di.yaml \ | |
--include-namespaces demo | |
# Eliminamos el namespace del cluster | |
kubectl delete namespace demo \ | |
--kubeconfig cluster-terraform-di.yaml | |
# Restauramos el backup en el cluster | |
velero restore create \ | |
--kubeconfig cluster-terraform-di.yaml \ | |
--from-backup demo-backups-20230411144511 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment