1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "AMTOC" 8 "" "" ""
22 amtoc - generate TOC (Table Of Contents) for an Amanda run
25 \fBamtoc\fR [-a] [-i] [-t] [-f \fIfile\fR] [-s \fIsubs\fR] [-w] [--] \fIlogfile\fR
29 generates a table of contents for an
31 run. It's a perl script (if you don't have perl, install it first!).
35 The output file name will be
36 \fBlabel-of-the-tape\fR.toc in the same directory as
44 Generate the output in tabular form.
47 Write the output to a file ('-' for stdout).
50 Evaluate the output file name from
51 \fBsubs\fR, with $_ set to
52 \fBlabel-of-the-tape\fR. The
54 option is equivalent to
55 \fB-s\fR\fI's/$_/.toc/'\fR.
58 Separate tapes with form-feeds and display blank lines before totals.
61 Marks the last option so the next parameter is the
68 The standard output has five fields separated by two spaces:
72 # Server:/partition date level size[Kb]
73 0 daily-05: 19991005 - -
74 1 cuisun15:/cuisun15/home 19991005 1 96
75 2 cuinfs:/export/dentiste 19991005 1 96
77 103 cuisg11:/ 19991005 0 4139136
78 103 total: - - 16716288
84 In tabular format (-t), this would look like:
88 # Server:/partition date lev size[Kb]
89 0 daily-05: 19991005 - -
90 1 cuisun15:/cuisun15/home 19991005 1 96
91 2 cuinfs:/export/dentiste 19991005 1 96
93 103 cuisg11:/ 19991005 0 4139136
94 103 total: - - 16716288
100 The easiest way to use it is to run
109 amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls -1t $logdir/log.*.[0-9] | head -1` ; amtoc -a $log
114 which will generate /usr/local/etc/amanda//daily/\fBtape_label\fR.toc. You may also want to call
123 \fBamgetconf\fR(8), cron, perl
127 <Nicolas.Mayencourt@cui.unige.ch>, University of Geneva/Switzerland : Original text
129 Stefan G. Weichinger,
130 <sgw@amanda.org>, maintainer of the
131 \fBAmanda\fR-documentation: XML-conversion