Steps ( for aws )

  1. Create a bucket in AWS S3 ( Mine is called sgenov-backup )
  2. Create a IAM user with the correct policy for S3
  3. Get the IAM user’s credentials
  4. Create a new file: velero-credentials in the root of the folder ( see how it should look down below )
  5. In the project root, run: velero install --use-restic --provider aws --plugins velero/velero-plugin-for-aws --bucket sgenov-velero-backup --secret-file ./velero-credentials --backup-location-config region=eu-west-1 --snapshot-location-config region=eu-west-1
    1. Make sure the bucket is empty!
    2. —use-restic is used to backup PVCs

velero-credentials:

[default]
aws_access_key_id=<AWS_ACCESS_KEY_ID>
aws_secret_access_key=<AWS_SECRET_ACCESS_KEY>