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

bin_directory is ignored! #78

Closed
Krysztophe opened this issue Apr 19, 2022 · 1 comment · Fixed by #79
Closed

bin_directory is ignored! #78

Krysztophe opened this issue Apr 19, 2022 · 1 comment · Fixed by #79
Assignees
Labels

Comments

@Krysztophe
Copy link
Contributor

This is ignored by pg_back (Debian Linux, pg_back 2.1.0 or compiled from master):

bin_directory = /usr/lib/postgresql/15/bin
DEBUG: pg_dump version is: 140002
2022/04/19 13:47:34.349841 DEBUG: processing input connection parameters
2022/04/19 13:47:34.349887 DEBUG: using pg_back as application_name
2022/04/19 13:47:34.349912 INFO: dumping globals
2022/04/19 13:47:34.349953 DEBUG: started encryption worker 0
2022/04/19 13:47:34.349967 DEBUG: started checksum worker 0
2022/04/19 13:47:34.349982 DEBUG: started upload worker 0
2022/04/19 13:47:34.350005 DEBUG: started checksum worker for encrypted files 0
2022/04/19 13:47:34.404027 DEBUG: pg_dumpall version is: 140002
2022/04/19 13:47:34.404126 DEBUG: running: /usr/bin/pg_dumpall -g -w -l postgres -d application_name=pg_back dbname=postgres host=/var/run/postgresql port=15001 sslmode=disable user=postgres -f /PGDATA2/DUMPS/defo-15/pg_globals_2022-04-19T13:47:34+02:00.sql

This seems to be as mistake in f01bbb4 on this line :

pg_back/main.go

Line 698 in 858f382

func execPath(prog string) string {

(I assume that you didn't drop the Linux support).

Hacking the function solves the problem.

@orgrim
Copy link
Owner

orgrim commented Apr 19, 2022

Hello @Krysztophe, could you please check that #79 fixes the issue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants