Curinfo: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(description based on reading the code..)
 
(man links)
Line 1: Line 1:
The curinfo database stores information on Amanda's "current" state.  It is the data used to run ''amadmin - info'', and is dumped in its entirety by ''amadmin - export''.
The curinfo database stores information on Amanda's "current" state.  It is the data used to run ''amadmin - info'', and is dumped in its entirety by ''amadmin - export''.


The curinfo database is located in the ''infodir'' specified in [[amanda.conf]].  It is currently stored in a text format (identical to the output of ''amadmin - export'', in fact), but is programmatically accessed as a database.  Even in large installations, it does not grow to such a size as to be unmangeable in this form.
The curinfo database is located in the ''infodir'' specified in {{man|5|amanda.conf}}.  It is currently stored in a text format (identical to the output of ''amadmin - export'', in fact), but is programmatically accessed as a database.  Even in large installations, it does not grow to such a size as to be unmangeable in this form.


= Database Users =
= Database Users =
The planner and driver use the curinfo database to make decisions about what sorts of dumps to make, and when to make them, based on the curinfo database.  Although the history in the database could be used to support a restore, [[amrecover]] uses [[Amanda log files/Trace Logs|trace logs]] instead.
The planner and driver use the curinfo database to make decisions about what sorts of dumps to make, and when to make them, based on the curinfo database.  Although the history in the database could be used to support a restore, {{man|8|amrecover}} uses [[Amanda log files/Trace Logs|trace logs]] instead.


= Database Contents =
= Database Contents =

Revision as of 23:06, 30 June 2008

The curinfo database stores information on Amanda's "current" state. It is the data used to run amadmin - info, and is dumped in its entirety by amadmin - export.

The curinfo database is located in the infodir specified in amanda.conf(5). It is currently stored in a text format (identical to the output of amadmin - export, in fact), but is programmatically accessed as a database. Even in large installations, it does not grow to such a size as to be unmangeable in this form.

Database Users

The planner and driver use the curinfo database to make decisions about what sorts of dumps to make, and when to make them, based on the curinfo database. Although the history in the database could be used to support a restore, amrecover(8) uses trace logs instead.

Database Contents

The database contains a record for each DLE. That record gives:

  • level of last dump (last_level) and number of runs at that level (consecutive_runs) -- used to determine which level should be dumped next.
  • dump-rate statistics (rates for the last three dumps) -- used to calculate bandwidth estimates

For each of the last NB_HISTORY dumps of the DLE, the record also includes the following stats:

  • level
  • size
  • compressed size
  • dump time
  • filenum and label (if the dump made it to tape)