tree: f63bfb7b2f211aaec041360065ea0afb5a664bc1 [path history] [tgz]
  1. defaults/
  2. meta/
  3. tasks/
  4. vars/
  5. README.md
roles/percona_xtradb_cluster/README.md

percona_xtradb_cluster

Scheduled backups

For more details on how to configure backups, you can refer to the scheduled backups documentation for the Percona Operator for MySQL.

You can override the default backup settings by setting the percona_xtradb_cluster_spec variable inside your inventory. You can use the following examples as a starting point.

Local storage

The following example shows a backup that runs daily at 6AM to a persistent volume with 3 backups kept. The size of the persistent volume is 500Gi in the example below.

percona_xtradb_cluster_spec:
  backup:
    image: perconalab/percona-xtradb-cluster-operator:main-pxc8.0-backup
    storages:
      fs-pvc:
        type: filesystem
        volume:
          persistentVolumeClaim:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 500Gi
    schedule:
      - name: daily
        schedule: 0 6 * * *
        keep: 3
        storageName: fs-pvc