Closed NicoledeGreef closed 3 months ago
Hi @chrislaick and @danhgov,
There are 2 aspects to database backups and retention which are done through pgbackrest via CrunchDB postgres cluster resource that is created from the template present at "tenant-gitops-ea352d/helm-drupal/charts/drupal/templates/postgrescluster/PostgresCluster.yaml"
P.S : When a full backup expires, all differential and incremental backups associated with the full backup will also expire.
References:
Thank you!
Thanks for your detective work on this, @kardamk! This is doing a lot to move this along.
As discussed, retention period has been changed from 30 days to 7 days for DB backups. Will be monitoring backup PVC for fine-tuning the DB retention period if required.
@chrislaick : Requesting you to merge the pull request https://github.com/bcgov-c/tenant-gitops-ea352d/pull/12 to the main branch after reviewing.
@kardamk Merged to main and synced with PROD.
After adjusting the retention period from 30 days to 7 days, the cronjob successfully pruned the backups and the PVC has gone from 91% > 25% (3.6GiB > 1.0 GiB). I think this ticket can be closed.
@kardamk @NicoledeGreef @danhgov
PVC database backup is nearly full. There are some not well known aspects of the database backups so this task is for devOps specialist to investigate and report out to the team via this ticket.
@danhgov