Project

General

Profile

Database Backup Restore

NSIA stores it's entire state in the database. Therefore, backing up the database will backup all of the NSIA (except the application itself).

Creating Backups (Internal Database Only)

Backups of the database can be created within the application by selecting "Create Backup" (http://127.0.0.1:8080/System/Backup) within the interface. This causes the application to create a zip archive containing a snapshot of the database in <install_directory>/var/backups.

Restoring from a Backup (Internal Database Only)

A backup of the database can be restored by extracting a backup into <install_directory>/var/database after shutting down NSIA. Restart NSIA after restoring the database will cause NSIA to mount the restored database.

To restore the database perform the following steps. Note that the steps below assume that you already have a database that you want to use and that you are using the internal database.

  1. Shutdown NSIA (if it is running)
  2. Move, rename or delete the directory titled "<install_directory>/var/database" within the NSIA installation directory. Note that the "var/database" directory contains NSIA's database. Don't delete the directory if you want to keep the existing database.
  3. Move the new database directory into NSIA's installation directory (unzip it first if necessary). The new database directory should be at "<install_directory>/var/database".
  4. Restart NSIA; the application should begin using the database you just moved or restored. Run the application from a command prompt and monitor the output to identify any potential problems (NSIA will output errors to the command-line if the database cannot be loaded).