Skip to content

How to restore a specific pvc if backup all #1011

Answered by Kidswiss
stevemayster asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @stevemayster

Each snapshot contains exactly one PVC. You can use the snapshot objects to determine which ID matches to which PVC, the paths field contains the name of the PVC that has been backed up in this snapshot. Then use that ID to do the restore via k8up cli, restic or a restore object.

kubectl get snapshots 162e7a85 -oyaml
apiVersion: k8up.io/v1
kind: Snapshot
metadata:
  name: 162e7a85
  namespace: default
spec:
  date: "2023-03-03T07:34:42Z"
  id: 162e7a85acbc14de93dad31a3699331cb32187ff0d7bd2227b7c4362a1d13a42 # ID for the restore
  paths:
  - /data/subject-pvc # Name of the PVC
  repository: s3:http://minio.minio.svc.cluster.local:9000/backup

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by stevemayster
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@stevemayster
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants