Managing NerveCenter - Managing the Database - Backing up the Database -
Viewing Information about the Database      Restoring the Database

Backing up the Database

You should establish a regular database backup schedule that suits your environment. Also, you should back up your database prior to doing anything that might affect the database. For example, you'll want to back up the database before upgrading NerveCenter or before importing data from another database. Then, if you need to restore the original data, you can.

SerializeDB exports the object and node data from the database to a single serialized ASCII file (*.asc). On Windows, SerializeDB offers an alternative: exporting to a NerveCenter flat file database, which is made up of two text files (*.ncdb and *.node). The flat file database files can be used on UNIX or can be imported into a database on Windows.

You can use any number of methods to set up regularly scheduled backups, depending on your environment. Select the method that fits in best with your existing backup strategy. Here are some suggestions:

If you need to do a manual backup in addition to your scheduled backups, see Backing up the Database Using the SerializeDB Application.

Backing up the Database Using the SerializeDB Application

SerializeDB exports the data in your database to a text file. When you use the SerializeDB GUI on Windows, you can choose the text file format -- you can have SerializeDB export the data to a NerveCenter flat file database or a serialized ASCII file. You might want to export data from a database on Windows to a flat file database if you want to use the resulting file on a UNIX machine without having to import the data.

If you are backing up a UNIX flat file database, all of the files that make up the database must be in the db directory. See Database Formats for more information.

 
  To back up the database using the SerializeDB application:

  1. Do one of the following to start SerializeDB:
  2. Select the Export database to file radio button.
  3. Specify the format by selecting one of the following radio buttons:
  4. Do one of the following:
  5. Select Start.

    On UNIX, SerializeDB starts exporting the data.

    On Windows, you must specify the data source for the database. The Select Data Source window is displayed.

    seldatasrc4

    1. Select the Machine Data Source tab.
    2. Select the data source for your NerveCenter database. Then select OK.

      See your Microsoft ODBC documentation for more information about selecting data sources.

When the data has been exported, SerializeDB displays a message letting you know that the data transfer was successful.

When running SerializeDB from the command line, you can only export to a serialized file (.asc file).


Viewing Information about the Database Restoring the Database
29 July 2003