3 .\" Author: Stefan G. Weichinger <sgw@amanda.org>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.1.0
10 .TH "AMREPORT" "8" "06/01/2010" "Amanda 3\&.1\&.0" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 amreport \- generate a formatted output of statistics for an Amanda run
24 .HP \w'\fBamreport\fR\ 'u
25 \fBamreport\fR [\fIconfig\fR] [{\fB\-o\fR\ \fIconfigoption\fR}...] [(1)\ \fIcommand\-line options\fR | (2)\ \fIscript options\fR]
27 .nr an-no-space-flag 1
31 (1)\ [\-\-log=\fIlogfile\fR] [\-\-ps=\fIfilename\fR] [\-\-text=\fIfilename\fR] [\-\-xml=\fIfilename\fR] [\-\-print=\fIprinter\fR] [\-\-mail\-text=\fIrecipient\fR]
33 (2)\ [\-i] [\-M\ \fIaddress\fR] [\-l\ \fIlogfile\fR] [\-f\ \fIoutputfile\fR] [\-p\ \fIpostscriptfile\fR] [\-\-from\-amdump]
37 generates a summary report of an Amanda backup run\&.
41 man page for more details about Amanda\&.
46 Name of the configuration to process\&. If no configuration name is specified, amanda\&.conf is read from the current directory\&.
49 \fB\-o \fR\fB\fIconfigoption\fR\fR
51 See the "CONFIGURATION OVERRIDE" section in
55 Amreport operates in two distinct modes\&. Command\-line mode is intended for use by an administrator from the command line, and uses long command\-line options for clarity\&. Script mode is intended for use from scripts such as amdump, and has a lot of non\-obvious default behaviors to suit that need\&.
57 Unless a script\-mode option is given, amreport defaults to command\-line mode\&. If no options are given, amreport writes a report for the most recent logfile to stdout\&.
58 .SS "Command\-Line Mode Options"
60 \fB\-\-log=\fR\fB\fIlogfile\fR\fR
62 Use this logfile as the basis for the report\&. If this option is given, then the report is a "historical" report and will not include current state from e\&.g\&., holding disk and curinfo\&. If this option is not specified, then the most recent logfile will be used\&.
65 \fB\-\-ps=\fR\fB\fIfilename\fR\fR
67 Write a postscript label to
68 \fIfilename\fR\&. See "LABEL PRINTING" below\&. If filename is not specified, then the label is written to stdout\&.
71 \fB\-\-text=\fR\fB\fIfilename\fR\fR
73 Write a human\-readable text report to
74 \fIfilename\fR\&. If filename is not specified, then the report is written to stdout\&.
77 \fB\-\-xml=\fR\fB\fIfilename\fR\fR
79 Write an XML\-formatted report to
80 \fIfilename\fR\&. If filename is not specified, then the report is written to stdout\&.
83 \fB\-\-print=\fR\fB\fIprinter\fR\fR
85 Pipe a postscript label to
88 \fBlpr\fR, specifying the given
89 \fIprinter\fR\&. If the printer is not specified, uses the default from the Amanda configuration, or the system default printer\&.
92 \fB\-\-mail\-text=\fR\fB\fIrecipient\fR\fR
94 Send a human\-readable text report to the given
96 via the mailer specified in the Amanda configuration\&. If the recipient is not specified, this uses the
98 from the Amanda configuration\&.
100 .SS "Script Mode Options"
104 Don\'t email the report\&.
107 \fB\-M\fR \fIaddress\fR
114 \fIamanda\&.conf\fR\&.
117 \fB\-l\fR \fIlogfile\fR
119 Name of the log file to parse to generate the report\&. If a log file is not specified, it defaults to the file
122 is the log directory defined in amanda\&.conf\&.
125 \fB\-f\fR \fIoutputfile\fR
129 sends the report via e\-mail to the
131 user as defined in the amanda\&.conf file\&. If
133 is specified, then the report is put in
137 \fB\-p\fR \fIpostscriptfile\fR
139 Send the postscript output to the file
143 command\&. This option has an effect only if the
145 directive is specified in amanda\&.conf\&.
148 \fB\-\-from\-amdump\fR
150 Force script mode\&. Has no other effect\&.
154 Amanda can print postscript labels describing the contents of tape(s) written in a run\&. The labels are designed to be folded and inserted into the tape case along with the tape or hole punched and put in a 3\-ring binder\&. Various label templates are provided to format data for different tape sizes\&.
156 The information printed varies slightly between label templates due to size constraints\&. Labels contain one line for each host/file\-system pair and may also contain the file number on the tape, the level of the dump, the original size of the dump and the size of the (possibly compressed) tape file\&.
160 parameter to the tapetype definition in amanda\&.conf to enable labels\&. If you don\'t add this line to your tapetype definition,
162 will not print tape labels\&.
166 keyword in amanda\&.conf to print to other than the system default printer\&.
169 Amanda provides label templates for the following tape types\&. These are pretty generic labels and should be easy to customize for other tape types or particular site needs\&.
184 The 3\-ring binder type is the most generic\&. It may be used to make a hardcopy log of the tapes\&.
187 The exit code of \fBamreport\fR is the ORed value of:
191 2 = a dle give strange message
193 8 = Don\'t know the status of a dle (RESULT_MISSING in the report)
194 16 = tape error or no more tape
202 : http://wiki.zmanda.com/
205 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>