Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] Restore a single PV along with its FSB data. #7719

Open
FredNass opened this issue Apr 22, 2024 · 1 comment
Open

[RFE] Restore a single PV along with its FSB data. #7719

FredNass opened this issue Apr 22, 2024 · 1 comment
Labels
Icebox We see the value, but it is not slated for the next couple releases. kind/requirement

Comments

@FredNass
Copy link

Hello,

I'm opening this issue as suggested here by @reasonerjt to discuss the ability for Velero to restore only a single PV along with its FSB data.

Currently, restoring a PV and its data implies restoring the original app as a whole with all its Kinds in a new mapped namespace otherwise files are not restored in the PV(s), and then set the restored PV persistentVolumeReclaimPolicy to Retain (if set to Delete), detach this PV from the restored PVC and then either:

  • [if restoring the PV as a whole] detach original PV from original PVC and bind original PVC to the restored PV.
  • [if restoring a few files] bind it to a new PVC in the original app namespace, attach it and mount it into the pod that needs to restore files, get into the pod, move files from restored PV to original PV.

Both tasks are a bit tedious and implies restoring many unneeded resources as of now.

It would be nice if Velero could allow the admin to restore a PV along with its data bound to a PVC created in original namespace (PVC's name would be suffixed by velero restore job's name for example). Velero could also provide a way to attach the restored PVC/PV to any pods (--attach-pv-to-pod) during the restoration and provide a way to detach it afterwards (--detach-pv-from-pod), if possible.

This could provide more fine grained control on PVs / files restoration with Velero. Also, PV selection by PVC/PV name would help the admin to restore a single PV instead of all PVs present in the backup.

@reasonerjt
Copy link
Contributor

Thanks @FredNass
A valid workaround may be to choose to restore the pod and pvc and use resource-modifier to change the image of a "dummy pod" like "pause".

Per discussion, this is probably a low priority for now, putting it in "icebox"

@reasonerjt reasonerjt added the Icebox We see the value, but it is not slated for the next couple releases. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Icebox We see the value, but it is not slated for the next couple releases. kind/requirement
Projects
None yet
Development

No branches or pull requests

2 participants