Introduction

This is a step by step guide for NetVizura backup.
Backup procedure will save the application's current state, such as database records, raw data files, MIB database and other relevant information.
Once backup is complete, you can save backup files on your storage and restore application at any time.

Prerequisites

Before starting with backup procedure, please make sure you have enough free disk space for database backup, raw files archive and installation directory data.
Depending on your usage, both database and raw files archive, can take up more than a few gigabytes of disk space.

Step 1: Stopping Tomcat

Stop Tomcat service before starting backup procedure to avoid database or archive being modified, while performing backup.
See the image below to see how it's done on Windows.

Step 2: Database Backup

Execute the following command from Windows Command Prompt.

Run Command Prompt with Administrative priviledges, Right click > Run as administrator

In this example we use PostgreSQL version 12, if you are using different version, please modify the path to pg_dump executable to match your version of PostgreSQL.

When you enter the following command, you will be prompt for password. Password is postgres.

"C:\Program Files\PostgreSQL\12\bin\pg_dump.exe" -U postgres --format=directory --jobs=4 --no-owner --no-security-labels --file="C:\Users\Administrator\Desktop\db_backup" netvizura

The result of database backup is db_backup directory on your Desktop.

Step 3: Backup Installation Directory

Use Windows compress tool to zip the entire NetVizura installation directory.
To zip the installation folder do Right click > Send to > Compressed (zipped) folder.

The result of this step is NetVizura.zip file.

Step 4: Backup NetFlow archive (optional)

This step is not necessary if:

  1. you don't want to backup NetFlow archive
  2. the archive is located under installation directory

Raw data archive is usually located under C:\Program Files\NetVizura\flow\archive directory. If archive is not located at the default location, you can find the exact location by going to NetFlow configuration  > Settings > NetFlow settings > Configuration under Archived files folder property. See the image below.

Right click on archive directory >Send to > Compressed (zipped) folder.
Result of this step is archive.zip file.

Step 5: Start Tomcat service

Finally, start Tomcat service. See the image below to see how it's done on Windows.

Result

The results of the backup procedure are the following files and directories:

  1. db_backup directory
  2. NetVizura.zip file
  3. archive.zip (optional)

Save these files to another server or external storage for backup.

See also

How to perform NetVizura restore on Windows







Backup file, in which raw archive data will be stored, is going to be the roughly the same size as the archive itself, since it already contains compressed files.




























--jobs argument in the command below specifies how many worker threads should perform backup. It is recommended to set this value to be equal to the number of CPU cores.








NetVizura installation directory is by default located at C:\Program Files\NetVizura.












It is a good practice to rename backup files, so that they contain date and time of the backup.

  • No labels