Backups schedule is defined on the per-repository basis in the
backups.pgbackrest.repos subsection of the deploy/cr.yaml file.
You can supply each repository with a schedules.<backup type> key equal to an
actual schedule that you specify in crontab format.
{.power-number}
-
Before you start, make sure you have configured a backup storage.
-
Configure backup schedule in the
deploy/cr.yamlfile. The schedule is specified in crontab format as explained in Custom Resource options. The repository name must be the same as the one you defined in the backup storage configuration. The following example shows the schedule forrepo1repository:... backups: pgbackrest: ... repos: - name: repo1 schedules: full: "0 0 * * 6" differential: "0 1 * * 1-6" ...
-
Update the cluster:
kubectl apply -f deploy/cr.yaml
Restore from a backup{.md-button}