15.3.4.2. File restore phase
The file restore phase makes the discovered backup files accessible. When you create a VirtualMachineFileRestore (VMFR) CR, the restore controller performs the following steps:
-
Validates that the referenced VMBD CR exists and is in the
Completedphase. - Verifies that the selected backups exist in the valid discovery results.
- Extracts persistent volume claim (PVC) metadata from the selected backup manifests.
- Creates a temporary namespace to isolate file-serving resources.
-
Triggers Velero restore objects for the PVCs for each backup. The restore objects use
includedResourcesto restore onlyPersistentVolumeClaims(PVCs) andVolumeSnapshots, and useorLabelSelectorsto target specific PVCs by theirvelero.kubevirt.io/pvc-uidlabel. AnamespaceMappingredirects the restored PVCs to the temporary namespace. - Creates a file-serving pod with an initialization container and access sidecars.