Contents
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.
To export the contents of your DataStore:
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:
fulldatabasedump |
Or, to specify the location of the dump file:
fulldatabasedump <path> |
Depending on the size of your DataStore, this process can take anywhere from several minutes to several hours.
uptimedump_YYYY-MM-DD.xml.gz
file. For example, uptimedump_2007-01-02.xml.gz
. This file is saved in Uptime Infrastructure Monitor's root installation directory.To import the contents of your DataStore:
Use the resetdb utility to delete and then recreate the Uptime Infrastructure Monitor database structure by running one of the following commands:
On Windows: > net stop "up.time Data Collector" > <uptime_dir>\resetdb --nodata really On Linux or Solaris: # /etc/init.d/uptime_core stop # <uptime_dir>/resetdb --nodata really |
Run the following command:
<uptime_dir>\scripts\fulldatabaseimport path/<filetoimport>.xml.gz |
Where path/<filetoimport>.xml.gz
is 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:
<uptime_dir>/scripts/fulldatabaseimport uptimedump_2007-01-02.xml.gz |
Restart the up.time Data Collector service by running the following command:
On Windows: > net start "up.time Data Collector" > net start "up.time Controller" On Linux or Solaris: # /etc/init.d/uptime_core start # /etc/init.d/uptime_controller start |
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 Windows:
> net stop "up.time Controller" > net stop "up.time Data Collector" > <uptime_dir>\resetdb --nodata really > <uptime_dir>\scripts\primport <pr_zipfile> > net start "up.time Data Collector" > net start "up.time Controller" |
On Linux or Solaris:
# /etc/init.d/uptime_controller stop # /etc/init.d/uptime_core stop # <uptime_dir>/resetdb --nodata really # <uptime_dir>/scripts/primport <pr_zipfile> # /etc/init.d/uptime_core start # /etc/init.d/uptime_controller start |