Skip to content

Latest commit

 

History

History
60 lines (42 loc) · 1.81 KB

01-20-13-aws-nfs-volume-restore.md

File metadata and controls

60 lines (42 loc) · 1.81 KB

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

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

  1. Export the namespace as an environment variable.

    export NAMESPACE={NAMESPACE_NAME}
  2. Create an AwsNfsVolumeRestore resource.

    cat <<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
    EOF
  3. Wait for the AwsNfsVolumeRestore to be in the Done state and have the Ready condition.

    kubectl -n $NAMESPACE wait --for=condition=Ready awsnfsvolumerestore/my-restore --timeout=600s

    Once the AwsNfsVolumeRestore is completed, you should see the following message:

    awsnfsvolumerestore.cloud-resources.kyma-project.io/my-restore condition met

Next Steps

To clean up, remove the created AwsNfsVolumeRestore:

kubectl delete -n $NAMESPACE awsnfsvolumerestore my-restore