Uptime Infrastructure Monitor includes two command line utilities for archiving and restoring your DataStore:
Creates a compressed XML file of the complete contents of your DataStore.
Imports the archived data back into your DataStore.
Both utilities work with all supported database backends.
Exporting the Contents of your DataStore
To export the contents of your DataStore:
- Shut down the up.time Data Collector service.
Navigate to the scripts folder under the directory where Uptime Infrastructure Monitor is installed.
Run the following command to save the dump file to the folder of the root installation:
Or, to specify the location of the dump file:
Depending on the size of your DataStore, this process can take anywhere from several minutes to several hours.
- The utility will create a
uptimedump_YYYY-MM-DD.xml.gzfile. For example,
uptimedump_2007-01-02.xml.gz. This file is saved in Uptime Infrastructure Monitor's root installation directory.
Importing the Contents of your DataStore
To import the contents of your DataStore:
- Ensure that the DataStore service is running.
Use the resetdb utility to delete and then recreate the Uptime Infrastructure Monitor database structure by running one of the following commands:
Run the following command:
path/<filetoimport>.xml.gzis the path to and file name of the archived contents of your DataStore. For example, to import the archive that is located in Uptime Infrastructure Monitor's root installation directory, enter:
Restart the up.time Data Collector service by running the following command:
Exporting & Importing only your Uptime Infrastructure Monitor Configuration
If you do not require all of your historical performance data or Service Monitor outage information, you can migrate only your Uptime Infrastructure Monitor configuration from one Uptime Infrastructure Monitor installation to another using the steps below.
- On the current Uptime Infrastructure Monitor installation, generate a problem report using the Problem Reporting link under the Config tab.
- Install the same version of Uptime Infrastructure Monitor on your new Uptime Infrastructure Monitor server. It is very important that the export system and the import system are using the same Uptime Infrastructure Monitor version.
- Copy this problem report to your new Uptime Infrastructure Monitor server and place it in the Uptime Infrastructure Monitor installation directory.
- Import the configuration from your problem report by running the following commands (replace PR-NAME with the full path & file name for your problem report, e.g. c:pr20140618-123456.zip or /root/pr20140618-123456.zip):
On Linux or Solaris: