3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
8 .TH "AMTOC" "8" "05/14/2008" "" ""
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 amtoc - generate TOC (Table Of Contents) for an Amanda run
17 \fBamtoc\fR [\-a] [\-i] [\-t] [\-f\ \fIfile\fR] [\-s\ \fIsubs\fR] [\-w] [\-\-] \fIlogfile\fR
21 generates a table of contents for an
23 run\. It\'s a perl script (if you don\'t have perl, install it first!)\.
28 The output file name will be
29 \fIlabel\-of\-the\-tape\fR\.toc in the same directory as
41 Generate the output in tabular form\.
46 Write the output to a file (\'\-\' for stdout)\.
51 Evaluate the output file name from
52 \fIsubs\fR, with $_ set to
53 \fIlabel\-of\-the\-tape\fR\. The
55 option is equivalent to
57 \fI\'s/$_/\.toc/\'\fR\.
62 Separate tapes with form\-feeds and display blank lines before totals\.
67 Marks the last option so the next parameter is the
73 (use \'\-\' for stdin)
77 The standard output has five fields separated by two spaces:
81 # Server:/partition date level size[Kb]
82 0 daily\-05: 19991005 \- \-
83 1 cuisun15:/cuisun15/home 19991005 1 96
84 2 cuinfs:/export/dentiste 19991005 1 96
86 103 cuisg11:/ 19991005 0 4139136
87 103 total: \- \- 16716288
93 In tabular format (\-t), this would look like:
97 # Server:/partition date lev size[Kb]
98 0 daily\-05: 19991005 \- \-
99 1 cuisun15:/cuisun15/home 19991005 1 96
100 2 cuinfs:/export/dentiste 19991005 1 96
102 103 cuisg11:/ 19991005 0 4139136
103 103 total: \- \- 16716288
109 The easiest way to use it is to run
118 amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls \-1t $logdir/log\.*\.[0\-9] | head \-1` ; amtoc \-a $log
122 which will generate /usr/local/etc/amanda//daily/\fItape_label\fR\.toc\. You may also want to call
131 \fBamgetconf\fR(8), cron, perl,
132 \fI\%http://wiki.zmanda.com\fR
136 <Nicolas\.Mayencourt@cui\.unige\.ch>, University of Geneva/Switzerland : Original text
138 Stefan G\. Weichinger,
139 <sgw@amanda\.org>, maintainer of the
140 \fIAmanda\fR\-documentation: XML\-conversion