zalando / zalando/postgres-operator
Change backup path s3
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 5.2k
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 3
Description
Hello,
is there a way to change to backup path to s3? Currently I'm getting always a backup created like s3://$s3-bucket-name/spilo/. I'd like to have something like this: s3://$s3-bucket-name/szop/. My config looks like this:
---
configAwsOrGcp:
aws_region: "eu-central-1"
aws_endpoint: "https://s3.eu-central-1.amazonaws.com"
wal_s3_bucket: "$s3-bucket-name"
configLogicalBackup:
logical_backup_provider: "s3"
logical_backup_s3_access_key_id: "ACCESS_KEY_ID"
logical_backup_s3_secret_access_key: "SECRET_KEY"
logical_backup_s3_bucket: "$s3-bucket-name"
logical_backup_s3_region: "eu-central-1"
logical_backup_s3_endpoint: "https://s3.eu-central-1.amazonaws.com"
logical_backup_schedule: "00 05 * * *"
Any chance to set a specific path?
Cheers
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with configLogicalBackup and the logical_backup_s3_* settings shown in the issue, then trace how the S3 backup destination is assembled. Determine where a configurable path or prefix would belong and verify that backups can use the requested bucket subpath; no file or test is named, so locate the relevant configuration and backup tests first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, postgresql
- Domain
- cloud, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100