Skip to content

For help, click the link below to get free database assistance or contact our experts for personalized support.

Making scheduled backups

Backups schedule is defined in the backup section of the Custom Resource and can be configured via the deploy/cr.yaml file.

  1. The backup.storages subsection should contain at least one configured storage.

  2. The backup.schedule subsection allows to actually schedule backups:

    • set the backup.schedule.name key to some arbitray backup name (this name will be needed later to restore the bakup).

    • specify the backup.schedule.schedule option with the desired backup schedule in crontab format .

    • set the backup.schedule.storageName key to the name of your already configured storage.

    • you can optionally set the backup.schedule.keep key to the number of backups which should be kept in the storage.

Here is an example of the deploy/cr.yaml with a scheduled Saturday night backup kept on the Amazon S3 storage:

...
backup:
  storages:
    s3-us-west:
      type: s3
      s3:
        bucket: S3-BACKUP-BUCKET-NAME-HERE
        region: us-west-2
        credentialsSecret: my-cluster-name-backup-s3
  schedule:
   - name: "sat-night-backup"
     schedule: "0 0 * * 6"
     keep: 3
     storageName: s3-us-west
  ...

Last update: 2025-02-20