Project

General

Profile

Database Backup Restore » History » Version 2

Luke Murphey, 04/03/2010 01:18 PM

1 1 Luke Murphey
h1. Database Backup Restore
2 1 Luke Murphey
3 1 Luke Murphey
NSIA stores it's entire state in the database. Therefore, backing up the database will backup all of the NSIA (except the application itself).
4 1 Luke Murphey
5 1 Luke Murphey
h2. Creating Backups (Internal Database Only)
6 1 Luke Murphey
7 1 Luke Murphey
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.
8 1 Luke Murphey
9 1 Luke Murphey
h2. Restoring from a Backup (Internal Database Only)
10 1 Luke Murphey
11 1 Luke Murphey
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.
12 2 Luke Murphey
13 2 Luke Murphey
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.
14 2 Luke Murphey
15 2 Luke Murphey
# Shutdown NSIA (if it is running)
16 2 Luke Murphey
# 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.
17 2 Luke Murphey
# 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".
18 2 Luke Murphey
 # 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).