Backing Up NFS Volumes in Amazon Web Services ​
WARNING
This is a beta feature available only per request for SAP-internal teams.
This tutorial explains how to create backups for Network File System (NFS) volumes in Amazon Web Services (AWS).
Prerequisites ​
- You have the Cloud Manager module added.
- You have created an AwsNfsVolume resource. See Use Network File System in Amazon Web Services.
NOTE
All the examples below assume that the AwsNfsVolume is named my-vol and is in the same namespace as the AwsNfsVolumeBackup resource.
Steps ​
Export the namespace as an environment variable. Run:
shellexport NAMESPACE={NAMESPACE_NAME}Create an AwsNfsVolumeBackup resource.
shellcat <<EOF | kubectl -n $NAMESPACE apply -f - apiVersion: cloud-resources.kyma-project.io/v1beta1 kind: AwsNfsVolumeBackup metadata: name: my-backup spec: source: volume: name: my-vol EOFWait for the AwsNfsVolumeBackup to be in the
Readystate.shellkubectl -n $NAMESPACE wait --for=condition=Ready awsnfsvolumebackup/my-backup --timeout=300sOnce the AwsNfsVolumeBackup is created, you should see the following message:
consoleawsnfsvolumebackup.cloud-resources.kyma-project.io/my-backup condition metObserve the location of the created backup.
shellkubectl -n $NAMESPACE get awsnfsvolumebackup my-backup -o jsonpath='{.status.location}{"\n"}'
Next Steps ​
To clean up, follow these steps:
Export the namespace as an environment variable. Run:
shellexport NAMESPACE={NAMESPACE_NAME}Remove the created AwsNfsVolumeBackup:
shellkubectl delete -n $NAMESPACE awsnfsvolumebackup my-backup