Skip to content

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

Delete the unneeded backup

The maximum amount of stored backups is controlled by the retention policies. Older backups are automatically deleted.

Manual deleting of a previously saved backup requires not more than the backup name. This name can be taken from the list of available backups returned by the following command:

$ kubectl get pg-backup

When the name is known, backup can be deleted as follows:

$ kubectl delete pg-backup/<backup-name>

Delete backups on cluster deletion

You can enable percona.com/delete-backups finalizer in the Custom Resource (turned off by default) to ensure that all backups are removed when the cluster is deleted. If the finalizer is enabled, the Operator will delete all the backups from all the configured repos on cluster deletion. Besides removing all the physical backup files, finalizer will also delete all pg-backup objects.

warning !!!

This `percona.com/delete-backups` finalizer is in tech preview state, and it is not yet recommended for production environments.

Last update: 2025-03-30