Archive your Backups

For long-term storage of your backups you may want to use cheaper storage, even if this is slower to restore, because you don’t need to restore that data frequently.

The custom Archive object defines the restore method and back-end required to archive backups of your namespace:

apiVersion: backup.appuio.ch/v1alpha1
kind: Archive
metadata:
  name: archive-test
spec:
  repoPasswordSecretRef:
    name: backup-repo
    key: password
  restoreMethod:
    s3:
      endpoint: http://10.144.1.224:9000
      bucket: restoremini
      accessKeyIDSecretRef:
        name: backup-credentials
        key: username
      secretAccessKeySecretRef:
        name: backup-credentials
        key: password
  backend:
    s3:
      endpoint: http://10.144.1.224:9000
      bucket: k8up
      accessKeyIDSecretRef:
        name: backup-credentials
        key: username
      secretAccessKeySecretRef:
        name: backup-credentials
        key: password
yaml

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