Skip to content

Complete method of replicate Netbox from a server to a new one #17673

Closed Answered by candlerb
manuelcalder0n asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is that the user importing the database ("santander") does not have access to the netbox database.

You could do it as the postgres user:

sudo -u postgres psql netbox <netbox.sql

Or you can do the other steps given before (create user netbox ..., alter database ..., grant create ...) and then authenticate to psql using the "netbox" user credentials, in the same way as you did when dumping the database, e.g.

psql --user netbox --password --host localhost netbox <netbox.sql

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@candlerb
Comment options

@manuelcalder0n
Comment options

@manuelcalder0n
Comment options

@candlerb
Comment options

Answer selected by manuelcalder0n
@manuelcalder0n
Comment options

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