Introduction

This is a step by step guide for NetVizura application restore.
Restore procedure will restore the application's state previously saved by backup, such as database and various archive files.

Prerequisites

Stop tomcat server:

systemctl stop tomcat8

Make sure you have performed Backup procedure and saved all resulting files needed to restore your database and application properly.

Also, make sure that you have installed same version of NetVizura application, as the one you have saved during backup.

You can follow step-by-step installation instructions on NetVizura Ubuntu Installation link. 

Step 1: Database Restore

First go to the folder in which you have copied database backup file.

Perform next commands:

sudo -u postgres dropdb netvizura
sudo -u postgres createdb netvizura
sudo -u postgres psql netvizura < netvizura.dump

These commands should recreate database and import backup into it.

Step 2: Restore opt folder

Copy  netvizura-opt.tgz file to the /opt folder and cd /opt to it:

sudo tar -pzxvf netvizura-opt.tgz 


Step 3: Restore var folder

Place netvizura-var.tgz file to the /var/lib folder and cd /opt to it:

sudo tar -pzxvf netvizura-var.tgz

Please make sure that path to NetFlow archive directory is correct.
You can check this by going to  > Settings > NetFlow settings > Configuration under Archived files folder property

Step 4: Start Tomcat service

Finally, start Tomcat service. 

systemctl start tomcat8

Step 5: License

After the migration, the license will be locked. You must contact us with current installation code, and receive unlock code from us.




























In our backup article, opt file was called netvizura-opt.tgz