Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg-backup-cron-job not working #3459

Closed
humphd opened this issue Apr 11, 2022 · 2 comments · Fixed by #3467
Closed

pg-backup-cron-job not working #3459

humphd opened this issue Apr 11, 2022 · 2 comments · Fixed by #3467
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@humphd
Copy link
Contributor

humphd commented Apr 11, 2022

On production, in the pg-backup-cron-job container, I see this log:

pg_dump: option does not take an argument: password
Try "pg_dump --help" for more information.
run-parts: /etc/periodic/daily/create-backup: exit status 1

cc @JerryHue

@humphd humphd added the type: bug Something isn't working label Apr 11, 2022
@humphd humphd added this to the 3.0 Release milestone Apr 11, 2022
@humphd
Copy link
Contributor Author

humphd commented Apr 11, 2022

Looks like it needs to be done as an environment variable instead https://stackoverflow.com/questions/2893954/how-to-pass-in-password-to-pg-dump

@JerryHue JerryHue self-assigned this Apr 12, 2022
@JerryHue
Copy link
Contributor

I think we could write the dbname option to be a connection string that uses the password value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants