3 .\" Author: Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 2.6.1p2
10 .TH "AMTOC" "8" "11/05/2009" "Amanda 2\&.6\&.1p2" "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 amtoc \- generate TOC (Table Of Contents) for an \fIAmanda\fR run
24 .HP \w'\fBamtoc\fR\ 'u
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!)\&.
36 The output file name will be
37 \fIlabel\-of\-the\-tape\fR\&.toc in the same directory as
49 Generate the output in tabular form\&.
54 Write the output to a file (\'\-\' for stdout)\&.
59 Evaluate the output file name from
60 \fIsubs\fR, with $_ set to
61 \fIlabel\-of\-the\-tape\fR\&. The
63 option is equivalent to
65 \fI\'s/$_/\&.toc/\'\fR\&.
70 Separate tapes with form\-feeds and display blank lines before totals\&.
75 Marks the last option so the next parameter is the
81 (use \'\-\' for stdin)
85 The standard output has five fields separated by two spaces:
87 # Server:/partition date level size[Kb]
88 0 daily\-05: 19991005 \- \-
89 1 cuisun15:/cuisun15/home 19991005 1 96
90 2 cuinfs:/export/dentiste 19991005 1 96
92 103 cuisg11:/ 19991005 0 4139136
93 103 total: \- \- 16716288
96 In tabular format (\-t), this would look like:
98 # Server:/partition date lev size[Kb]
99 0 daily\-05: 19991005 \- \-
100 1 cuisun15:/cuisun15/home 19991005 1 96
101 2 cuinfs:/export/dentiste 19991005 1 96
103 103 cuisg11:/ 19991005 0 4139136
104 103 total: \- \- 16716288
108 The easiest way to use it is to run
115 amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls \-1t $logdir/log\&.*\&.[0\-9] | head \-1` ; amtoc \-a $log
118 which will generate /usr/local/etc/amanda//daily/\fItape_label\fR\&.toc\&. You may also want to call
127 \fBamgetconf\fR(8), cron, perl,
128 : http://wiki.zmanda.com
131 \fBNicolas Mayencourt\fR <\&Nicolas\&.Mayencourt@cui\&.unige\&.ch\&>
133 University of Geneva/Switzerland
136 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>