How to Create a Backup

The Backup object defines what and how to backup:

apiVersion: backup.appuio.ch/v1alpha1
kind: Backup
metadata:
  name: backup-test
spec:
  keepJobs: 4
  promURL: http://minio:9000
  backend:
    repoPasswordSecretRef:
      name: backup-repo
      key: password
    s3:
      endpoint: http://minio:9000
      bucket: backups
      accessKeyIDSecretRef:
        name: minio-credentials
        key: username
      secretAccessKeySecretRef:
        name: minio-credentials
        key: password

Save the YAML above in a file named backup.yaml and use the kubectl apply -f backup.yaml command to deploy this configuration to your cluster.

To have backups run automatically at a regular interval look at schedules.