Skip to content
Discussion options

You must be logged in to vote

I solved the issue: I had to change the restore command to pg_restore --create --clean --exit-on-error --verbose -U postgres -h localhost -d postgres DUMPFILE

That way pg_restore connects to the postgres db, from there drops and creates the netbox db (as instructed by dump), connects to it and restores the whole dump.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jeremystretch
Comment options

Answer selected by dimitrigraf
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants