Configuring local backup settings for fresh install of the Management subsystem

You can configure backups for your Management subsystem in your Kubernetes environment.

Before you begin

Review Backing up and restoring the management subsystem.

About this task

If you haven't already, configure your Management subsystem custom resource.

Procedure

Configure your Management subsystem custom resource with the databaseBackup subsection.

For local backups, you need specify only the schedule. For Version 10.0.3.0 or later, you can also optionally specify repoRetentionFull:

databaseBackup:
  schedule: "0 3 * * *"
  repoRetentionFull: 2
Table 1. Backup configuration settings
Setting Description
schedule Cron like schedule for performing automatic backups. The format for the schedule is:
  • * * * * *
  • - - - - -
  • | | | | |
  • | | | | +----- day of week (0 - 6) (Sunday=0)
  • | | | +------- month (1 - 12)
  • | | +--------- day of month (1 - 31)
  • | +----------- hour (0 - 23)
  • +------------- min (0 - 59)

The timezone for backups is that of the node on which the postgres-operator pod is scheduled.

There is no default backup schedule set. Be sure to set your backup schedule.

All scheduled Management subsystem backups are of type full only.

repoRetentionFull v10.0.3.0 or later- The number of full local backups to retain. When the next full backup successfully completes, and the specified number of retained backups is reached, the oldest full backup is deleted. All incremental backups and archives associated with the oldest full backup also expire. Incremental backups are not counted for this setting.

Applies to both manual backups and scheduled backups.

Minimum value: 1

Maximum value: 9999999

Default: none