3 .\" Author: Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.3.1
10 .TH "AMTOC" "8" "02/21/2012" "Amanda 3\&.3\&.1" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 amtoc \- generate TOC (Table Of Contents) for an Amanda run
33 .HP \w'\fBamtoc\fR\ 'u
34 \fBamtoc\fR [\-a] [\-i] [\-t] [\-f\ \fIfile\fR] [\-s\ \fIsubs\fR] [\-w] [\-\-] \fIlogfile\fR
38 generates a table of contents for an Amanda run\&. It\*(Aqs a perl script (if you don\*(Aqt have perl, install it first!)\&.
43 The output file name will be
44 \fIlabel\-of\-the\-tape\fR\&.toc in the same directory as
56 Generate the output in tabular form\&.
61 Write the output to a file (\*(Aq\-\*(Aq for stdout)\&.
66 Evaluate the output file name from
67 \fIsubs\fR, with $_ set to
68 \fIlabel\-of\-the\-tape\fR\&. The
70 option is equivalent to
72 \fI\*(Aqs/$_/\&.toc/\*(Aq\fR\&.
77 Separate tapes with form\-feeds and display blank lines before totals\&.
82 Marks the last option so the next parameter is the
88 (use \*(Aq\-\*(Aq for stdin)
92 The standard output has five fields separated by two spaces:
94 # Server:/partition date level size[Kb]
95 0 daily\-05: 19991005 \- \-
96 1 cuisun15:/cuisun15/home 19991005 1 96
97 2 cuinfs:/export/dentiste 19991005 1 96
99 103 cuisg11:/ 19991005 0 4139136
100 103 total: \- \- 16716288
103 In tabular format (\-t), this would look like:
105 # Server:/partition date lev size[Kb]
106 0 daily\-05: 19991005 \- \-
107 1 cuisun15:/cuisun15/home 19991005 1 96
108 2 cuinfs:/export/dentiste 19991005 1 96
110 103 cuisg11:/ 19991005 0 4139136
111 103 total: \- \- 16716288
115 The easiest way to use it is to run
122 amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls \-1t $logdir/log\&.*\&.[0\-9] | head \-1` ; amtoc \-a $log
125 which will generate /usr/local/etc/amanda//daily/\fItape_label\fR\&.toc\&. You may also want to call
137 : http://wiki.zmanda.com/
140 \fBNicolas Mayencourt\fR <\&Nicolas\&.Mayencourt@cui\&.unige\&.ch\&>
142 University of Geneva/Switzerland
145 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>