How to Create a Backup
The Backup
object defines what and how to backup:
apiVersion: k8up.io/v1
kind: Backup
metadata:
name: backup-test
spec:
failedJobsHistoryLimit: 2
successfulJobsHistoryLimit: 2
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. |