Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.08 KB

velero_restore.md

File metadata and controls

31 lines (23 loc) · 1.08 KB

Velero Restore

What if we accidentally delete our application or the namespace that we used for the application. This lab will show backing up and restoring with Velero. To start, let's perform a namespace-specific backup:

velero backup create wlc-1-acme-fitness --include-namespaces acme-fitness
Backup request "wlc-1-acme-fitness" submitted successfully.
Run `velero backup describe wlc-1-acme-fitness` or `velero backup logs wlc-1-acme-fitness` for more details.

velero backup describe wlc-1-acme-fitness
<look for Completed>

The first test is to delete the deployments and PVCs within the namespace. This will remove all pods and persistent data:

kubectl delete deployment -n acme-fitness --all
kubectl delete svc -n acme-fitness --all
kubectl delete pvc -n acme-fitness --all
kubectl get all,pvc -n acme-fitness

Now we can run the restore from velero:

velero restore create wlc-1-acme-fitness-04-24-2020 --from-backup wlc-1-acme-fitness
velero restore describe wlc-1-acme-fitness-04-24-2020
k get all,pvc -n acme-fitness

That's it! Back in business.