Open cdaller opened 2 years ago
@cdaller thank you for the detailed issue submission.
As you are seeing, PGO is currently opinionated about the stanza for any repos it manages, and will therefore always set the stanza to db
.
However, we have added an enhancement to our backlog to enable support for custom stanzas in a future PGO release.
Thanks again!
Overview
I am trying to backup/restore to an S3 bucket using the non-default stanza (which is "db"), but I do not manage to set a stanza on the backup.
I am following the guide from https://www.crunchydata.com/blog/cloud-data-sources-for-the-postgres-operator-for-kubernetes
Environment
Steps to Reproduce
To restore the data I want to use the following postgresCluster (taken from tutorial). Here I can set a stanza name, but I cannot do so in the backup!
I tried to set the stanza in the backup of hippo-source postgresCluster like:
But then the error message states
I had a look into the source code and a quick search found this piece of code in bgbackrest.go:
There it seems that for backups always the default stanza name is used and it is not possible to use a custom stanza.
Apart from that the tutorial worked out fine. So my S3 credentials are correct and the backup can be created (though with stanza "db" and restored).
EXPECTED
I expect that there is a configuration option to set the stanza for backups.
ACTUAL
The default stanza name is always used for backups. For restores I can define a stanza name.