You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

The archiving procedure that is described in this article only works with MySQL databases. See Exporting and importing your DataStore or configuration for information on exporting and importing data into Oracle and SQL databases.

This article describes how to retrieve DataStore data that was automatically archived by Uptime Infrastructure Monitor, based on your configured archive policy.

Archived data can only be restored by the same version of UIM that was used to create it.

You can configure UIM to selectively archive data in the DataStore. Each month, UIM checks the DataStore to determine if the data is older than the specified archive period. The archived data is moved into a directory named archives under the base installation directory.

If UIM discovers data that is older than the archive period, the data is copied out of the database and saved as a compressed XML file. The name of this file consists of the type of data that was archived and the date on which the data was archived. For example, a file containing file system capacity data that was archived on June 12, 2023 has the following file name:

  • performance_fscap_2023-06-12.xml.gz

Identifying data you want to restore

Before importing your data, identify the files that contain the information that you want to import. Uptime Infrastructure Monitor creates the following archives:

Type of DataArchive FilenameDatabase Table(s) Archived
CPU Statisticsperformance_cpu_<date>.xml.gzperformance_cpu
Overall CPU Statisticsperformance_aggregate_<date>.xml.gzperformance_aggregate
NRM Statisticsperformance_nrm_<date>.xml.gzperformance_nrm (if you are running Novell NRM in your environment)
Multi-CPU Statisticsperformance_cpu_<date>.xml.gzperformance_cpu
Detailed Process Statisticsperformance_psinfo_<date>.xml.gzperformance_psinfo
Disk Performance Statisticsperformance_disk_<date>.xml.gzperformance_disk
File System Capacity Statisticsperformance_fscap_<date>.xml.gzperformance_fscap
Network Statisticsperformance_network_<date>.xml.gzperformance_network
User Information Statisticsperformance_who_<date>.xml.gzperformance_who
Volume Manager Statisticsperformance_vxvol_<date>.xml.gzperformance_vxvol
Retained Data

erdc_int_data_<date>.xml.gz

erdc_decimal_data_<date>.xml.gz

erdc_string_data_<date>.xml.gz    

erdc_int_data

erdc_decimal_data

erdc_string_data

Importing the archived data

When you have identified the archived data that you want to import into the database, run the following commands to import the archived data:

  1. At the command line, navigate to the following directory:
    • On Linux and Solaris: /usr/local/uptime/scripts/.
    • On Windows: C:\Program Files\uptime software\uptime\scripts.
  2. Run the restorearchive command with one or more of the following options:
    • -f <filename>
      Imports a single file (specify the full path to the file name).
    • -d <date>
      Imports all files with the specified date (in YYYY-MM-DD format).
    • -D <directory>
      The directory containing the archived files. Note that you must specify this option when using the -d option.
    • -c <configFile>
      The full path to the uptime.conf file.

For example, enter the following command to import all data archived on September 23, 2023 which is located in the default directory for archived data:

restorearchive -d 2023-09-23 -d /usr/local/uptime/archives/ -c /usr/local/uptime/uptime.conf


  • No labels