Creating backups
Written by
Updated at April 8, 2026
You can create a backup for any PostgreSQL cluster existing in your project.
CLI
Management console
-
Create a file of the
PostgresqlBackupresource, e.g., using thetouch postgresqlbackup.yamlcommand. -
Open the file and paste the configuration:
apiVersion: postgresql.stackland.yandex.cloud/v1alpha1 kind: PostgresqlBackup metadata: name: cluster-backup spec: cluster: name: cluster -
Apply the manifest:
kubectl apply -f postgresqlbackup.yaml -n <project name>. Optionally, you can specify the project name in themetadata.namespaceresource property and skip it in the command.
- If you have not opened a project yet, select one.
- In the left-hand menu, select PostgreSQL Clusters.
- Select the cluster.
- Click Create backup.
- Confirm the creation of a backup.
This is it, your backup has been created.
Note
To recover a deleted cluster from a backup, see Recovering a cluster.