Hello,I am having some issues configuring backups for the postgres operator in cr.yaml, pgo-version 1.3.0. Below is my configuration along with logs from the job pod. I am using
My first question is why is the backup trying to run using s3 when I have local specified in the schedule? I have noticed if I comment out the s3 configuration, then it only runs a local backup as expected. Is this by design?
Second, it doesn’t seem like the bucket is being picked up in the configuration when I specify s3 or local in the schedule. I know it is seeing the configuration because if I change the type to gcs for example, the error log mentions it is missing a gcs bucket rather than s3.
Thanks in advance for your help.
Config:
storages:
new-s3:
type: s3
bucket: s3://BUCKET/
region: us-west-2
endpointUrl: s3.amazonaws.com
verifyTLS: false
uriStyle: path
schedule:
- name: "testing-backup"
schedule: "*/3 * * * *"
keep: 2
type: full
storage: local
Error Logs:
time=“2023-03-25T17:57:03Z” level=info msg=“crunchy-pgbackrest starts”
time=“2023-03-25T17:57:03Z” level=info msg=“debug flag set to false”
time=“2023-03-25T17:57:03Z” level=info msg=“backrest backup command requested”
time=“2023-03-25T17:57:03Z” level=info msg=“backrest command will be executed for both local and s3 storage”
time=“2023-03-25T17:57:03Z” level=info msg=“command to execute is [pgbackrest backup --stanza=db --type=full --repo1-retention-full=2 --db-host=10.128.2.56 --db-path=/pgdata/dev-eng-pg-cluster-repl3 ; pgbackrest backup --stanza=db --type=full --repo1-retention-full=2 --db-host=10.128.2.56 --db-path=/pgdata/dev-eng-pg-cluster-repl3 --repo1-type=s3 --no-repo1-s3-verify-tls]”
time=“2023-03-25T17:57:17Z” level=info msg=“output=”
time=“2023-03-25T17:57:17Z” level=info msg=“stderr=[ERROR: [037]: backup command requires option: repo1-s3-bucket\n]”
time=“2023-03-25T17:57:17Z” level=fatal msg=“command terminated with exit code 37”