percona / percona/percona-postgresql-operator
tar package is missing in pgbackrest image
Open
Nobody has claimed this yet.
feature-request
jira-task
PG
Proposed
- Dominant language
- Go
- Stars
- 385
- Forks
- 83
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 39
Description
Proposal
Hi Team,
I want to copy out the backups stored in repo-host to have it externally, but it seems that tar package is not included in percona-pgbackrest:2.58.0-2 image.
kubectl cp db-cluster-repo-host-0:/pgbackrest/repo1/test1 .test
error: Internal error occurred: Internal error occurred: error executing command in container: failed to exec in container: failed to start exec "3cd4c482e3f4809dde7d18b20520012208921684d9b8aa1ae4155c76a8b784e9": OCI runtime exec failed: exec failed: unable to start container process: exec: "tar": executable file not found in $PATH: unknown
kubectl exec -it db-cluster-repo-host-0 -c pgbackrest -- /bin/bash
bash-5.1$ tar
bash: tar: command not found
Best regards,
Grzegorz
Use-Case
Possibility to store backups externally, in case we not able to use s3 bucket or others.
Is this a feature you are interested in implementing yourself?
No
Anything else?
No response
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 by inspecting how the percona-pgbackrest:2.58.0-2 image is built and reproduce the kubectl cp failure shown in the issue. Done means the image includes tar and kubectl cp can copy backup contents from the repo-host container for the stated use case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kubernetes, postgresql
- Domain
- databases, infrastructure
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 57/100