homelab/kubernetes: cloudnative-pg how to copy existing db

- add documentation regarding how to copy existing DB using
  cloudnative-pg
This commit is contained in:
2025-06-21 19:07:42 +03:00
parent 53978199a6
commit 28c23821ec
4 changed files with 84 additions and 2 deletions

View File

@ -0,0 +1,10 @@
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: pg-main-backup
spec:
immediate: true
schedule: "0 0 0 * * *" # At midnight every day
backupOwnerReference: self
cluster:
name: master-postgres