Restoring NFS Volume Backups in Amazon Web Services ​
WARNING
This is a beta feature available only per request for SAP-internal teams.
This tutorial explains how to initiate a restore operation for the ReadWriteMany (RWX) volumes in Amazon Web Services (AWS).
Prerequisites ​
- You have the Cloud Manager module added.
- You have created an AwsNfsVolume. See Use Network File System in Amazon Web Services.
- You have created an AwsNfsVolumeBackup. See Back Up Network File System Volumes in Amazon Web Services.
NOTE
The following examples assume that the AwsNfsVolumeBackup is named my-backup and is in the same namespace as the AwsNfsVolumeRestore resource.
Steps ​
Restore on the Same or Existing Filestore ​
Export the namespace as an environment variable.
shellexport NAMESPACE={NAMESPACE_NAME}Create an AwsNfsVolumeRestore resource.
shellcat <<EOF | kubectl -n $NAMESPACE apply -f - apiVersion: cloud-resources.kyma-project.io/v1beta1 kind: AwsNfsVolumeRestore metadata: name: my-restore spec: source: backup: name: my-backup EOFWait for the AwsNfsVolumeRestore to be in the
Donestate and have theReadycondition.shellkubectl -n $NAMESPACE wait --for=condition=Ready awsnfsvolumerestore/my-restore --timeout=600sOnce the AwsNfsVolumeRestore is completed, you should see the following message:
consoleawsnfsvolumerestore.cloud-resources.kyma-project.io/my-restore condition met
Next Steps ​
To clean up, remove the created AwsNfsVolumeRestore:
shell
kubectl delete -n $NAMESPACE awsnfsvolumerestore my-restore