Complete method of replicate Netbox from a server to a new one #17673
-
Hello, I have Netbox v3.7.4 installed on a server and I want to replicate it in a new server, working as full back up. I have the .sql but when I am going to upload it on the new server I am unable to do it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
user@stnetboxbkp:~$ psql netbox < netbox.sql This is the fatal error it appears |
Beta Was this translation helpful? Give feedback.
-
The complete process is documented here: |
Beta Was this translation helpful? Give feedback.
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:
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.