Steps ( for aws )
- Create a bucket in AWS S3 ( Mine is called
sgenov-backup) - Create a IAM user with the correct policy for S3
- Get the IAM user’s credentials
- Create a new file:
velero-credentialsin the root of the folder ( see how it should look down below ) - 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- Make sure the bucket is empty!
- —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>