Restore a backup with a lost pod


I was trying to do a backup and restore in a disaster recovery scenario.
I created a pod (a postgresql db), backed it up and then I destroyed the pod.
Trying to just list the snapshots I got an error:

kubectl get snapshot --all-namespaces
Error from server: no pod found for workload psql-postgresql

How am I supposed to recover a backup from a distaster if I lost the pods?


Hi sciabarracom, did you use local backend for bakcup? Stash require pod running to list snapshots only for local backend. Cloud backend will not require that. However, it is necessary only to list snapshot not to recover. So, you still will be able to recover when pod is lost.


Thanks I realized that and was able to list snapshots installing it