Skip to main content
Skip table of contents

Velero with AWS S3 Buckets - Establish a Backup Location

Create a Backup Storage Location

  1. Create a location for the backup by pointing to an existing S3 bucket:

    CODE
    velero backup-location create -n ${WORKSPACE_NAMESPACE} <aws-backup-location-name> \
      --provider aws \
      --bucket ${BUCKET} \
      --config region=<AWS_REGION> \
      --credential=velero-aws-credentials=aws
  2. Check that the backup storage location is Available and that it references the correct S3 bucket:

    CODE
    kubectl get backupstoragelocations -n ${WORKSPACE_NAMESPACE} -oyaml

If the BackupStorageLocation is not Available, view any error events by using: kubectl describe backupstoragelocations -n ${WORKSPACE_NAMESPACE}

Create a Test Backup

  1. Create a test backup that is stored in the location you created in the previous section:

    CODE
    velero backup create aws-velero-testbackup -n ${WORKSPACE_NAMESPACE} --kubeconfig=${CLUSTER_NAME}.conf --storage-location <aws-backup-location-name> --snapshot-volumes=false
  2. View your backup:

    CODE
    velero backup describe aws-velero-testbackup

 

Next Step:

Back up with Velero

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.