Project

General

Profile

Database Backup Restore » History » Version 2

Version 1 (Luke Murphey, 04/03/2010 12:54 PM) → Version 2/3 (Luke Murphey, 04/03/2010 01:18 PM)

h1. 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).

h2. 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.

h2. 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.

# Shutdown NSIA (if it is running)
# 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.
# 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".
# 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).