Article Contents
\nOverview
\n \nup.time includes two command line utilities for archiving and restoring your DataStore:
\nCreates a compressed XML file of the complete contents of your DataStore.
\nImports the archived data back into your DataStore.
\nBoth utilities work with all supported database backends.
\n \nExporting the Contents of your DataStore
\n \nTo export the contents of your DataStore:
\n \nfulldatabasedump
Or, to specify the location of the dump file: \n
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 up.time's root installation directory.Importing the Contents of your DataStore
\n \nTo import the contents of your DataStore:
\nOn Windows: \n\n
>net stop "up.time Data Collector" \n
>C:>Program Files>uptime software>uptime>resetdb --nodata really \n
On Linux or Solaris: \n\n
/etc/init.d/uptime_core stop \n
/usr/local/uptime/resetdb --nodata really \n
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 up.time's root installation directory, enter:
\n
\n
fulldatabaseimport uptimedump_2007-01-02.xml.gz
On Windows: \n\n
>net start "up.time Data Collector"
On Linux or Solaris: \n\n
/etc/init.d/uptime_core start
Exporting & Importing only your up.time Configuration
\nIf you do not require all of your historical performance data or service monitor outage information, you can migrate only your up.time configuration from one up.time installation to another using the steps below.
\n \nOn Windows: \n\n
>net stop "up.time Data Collector" \n
>C:>Program Files>uptime software>uptime>resetdb --nodata really \n
>C:>Program Files>uptime software>uptime>scripts>primport PR-NAME \n
>net start "up.time Data Collector" \n
On Linux or Solaris: \n\n
/etc/init.d/uptime_core stop \n
/usr/local/uptime/resetdb --nodata really \n
/usr/local/uptime/scripts/primport PR-NAME \n
/etc/init.d/uptime_core start \n