Hi there,
So I want to move our NetBox database from the server where I did the test installation to the production server. I have exported the database with
pg_dump --username netbox --password --host localhost netbox > netbox.sql
and reimport in on the new system with
sudo -u postgres psql -c 'drop database netbox'
sudo -u postgres psql -c 'create database netbox'
sudo -u postgres psql psql netbox < netbox.sql
However after and do that I get a Server Error when loading the Netbox webpage with the advice to run the migration script again. I did that and the webpage loads again but there is no data.
Anyone done a successful export/import and has a good how-to description?
No comments:
Post a Comment