3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
8 .TH "AMTOC" "8" "08/22/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:
79 # Server:/partition date level size[Kb]
80 0 daily\-05: 19991005 \- \-
81 1 cuisun15:/cuisun15/home 19991005 1 96
82 2 cuinfs:/export/dentiste 19991005 1 96
84 103 cuisg11:/ 19991005 0 4139136
85 103 total: \- \- 16716288
88 In tabular format (\-t), this would look like:
90 # Server:/partition date lev size[Kb]
91 0 daily\-05: 19991005 \- \-
92 1 cuisun15:/cuisun15/home 19991005 1 96
93 2 cuinfs:/export/dentiste 19991005 1 96
95 103 cuisg11:/ 19991005 0 4139136
96 103 total: \- \- 16716288
100 The easiest way to use it is to run
107 amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls \-1t $logdir/log\.*\.[0\-9] | head \-1` ; amtoc \-a $log
110 which will generate /usr/local/etc/amanda//daily/\fItape_label\fR\.toc\. You may also want to call
119 \fBamgetconf\fR(8), cron, perl,
120 : http://wiki.zmanda.com
124 <Nicolas\.Mayencourt@cui\.unige\.ch>, University of Geneva/Switzerland : Original text
126 Stefan G\. Weichinger,
127 <sgw@amanda\.org>, maintainer of the
128 \fIAmanda\fR\-documentation: XML\-conversion