-
-
Notifications
You must be signed in to change notification settings - Fork 96
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
Cannot dump database through SSH #36
Comments
@Flink thoughts here? |
I need to do some tests but I never dumped (nor restored) in plain SQL with PG and I never had any problems. (and I migrated data from Heroku to “real” PG servers, to containers, etc., it always worked). It might be a problem on your machines or maybe with a certain version of PG, I don’t know. @ebeigarts Did you try to dump/restore directly on the machine and not through ssh? (just an idea) |
@Flink it works locally on the machine. |
Maybe the
|
I think I had a similar problem on https://github.com/Flink/dokku-psql-single-container, I’ll take a look about what you’re suggesting :) |
Maybe we need to check for the tty yeah, I don’t know. I’ll do some testing :) |
We are having problems importing the custom format dump using
pg_restore
on other machines -Segmentation fault (core dumped)
I think the default should be plain sql (this is also what pg_dump does by default) and maybe somehting like
dokku postgres:export <app> -Fc
could dump in the custom format.WDYT?
Our current workaround is
ssh root@<host> "docker exec dokku.postgres.<app> env PGPASSWORD=<pw> pg_dump --no-acl --no-owner -h localhost -U postgres -w <app>"
The text was updated successfully, but these errors were encountered: