After configuring backups to a remote S3 bucket (e.g., AWS S3, MinIO, etc.), new backups may not appear. This issue is often caused by misconfiguration in the S3 location:
agility backup s3 status --debug
.Alternatively, inspect other logs:
sudo su -
# Operator logs
kubectl -n kube-system logs -l postgres-operator.crunchydata.com/control-plane=pgo
# Backups jobs logs
kubectl -n agility logs -l postgres-operator.crunchydata.com/pgbackrest-repo=repo2
agility backup s3 settings list --sensitive
agility backup s3 settings delete
.agility backup s3 create
.agility backup s3 status
.There are cases where Point in Time Recovery (PITR) fails due to various issues, with the most common being the absence of a reference for that specific time in the backups.
If the restore command fails, it provides details about the failure, and the database may not be functional after the restore.
agility backup s3 status --debug
.Examine the logs of other components:
sudo su -
# Operator logs
kubectl -n kube-system logs -l postgres-operator.crunchydata.com/control-plane=pgo
# Database logs
kubectl -n agility logs postgres-operator.crunchydata.com/role=master
# Restore job logs
kubectl -n agility logs -l batch.kubernetes.io/job-name=agility-db-pgbackrest-restore
agility backup s3 restore
.This operation is destructive as it deletes the current AGILITY database running on the system and clones/restores it from another location. This is primarily used for disaster recovery cases and instances migrations.
agility backup s3 settings apply
, DO NOT USE existing backup locations used previously, as this might prevent the database from starting. Instead, use an empty S3 folder location where no other backups are available.