#I need help with postgres restore database

39 messages · Page 1 of 1 (latest)

terse fractal
upbeat flameBOT
#

Project ID: 53b9fe5c-d166-46c5-bd1a-8280edc67251

terse fractal
#

53b9fe5c-d166-46c5-bd1a-8280edc67251

runic viper
#

what was the command ran to take the backup?

terse fractal
runic viper
#

im sorry but that doesnt quite answer my question

terse fractal
terse fractal
#

How's it going?

runic viper
#

what version of pg_dump are you using?

terse fractal
#

16.3

runic viper
#

and what about pg_restore?

terse fractal
#

same

runic viper
#

i cant reproduce the issue with pg_restore / pg_dump 16.x, i ran the same commands you gave me

terse fractal
#

can you give me the file/

#

the backup file

#

I used the file which I backed up 2 months ago, it works just fine, but not the new one

runic viper
#

i didnt take a backup of your database lol

terse fractal
#

Then does my database create the issue?

runic viper
#

i assume its a bad file

terse fractal
#

how come?

runic viper
#

because restoring from the file doesnt work

terse fractal
#

Can I swap postgres database between prod and dev environment

runic viper
#

nope, you would want to use pg_dump and pg_restore for that

terse fractal
#

I made progress with an new error

runic viper
#

you need to use the public host and port

terse fractal
#

this one right?

runic viper
#

thats the internal host

terse fractal
#

where can I find it?

#

why it has two ports?

runic viper
#

external and internal

terse fractal
#

procceed with an new error

runic viper
#

i honestly dont know, unfortunately theres not all that much i can do here as we cant really provide support for 3rd party software