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 3.2.1
10 .TH "AMTOC" "8" "12/14/2010" "Amanda 3\&.2\&.1" "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 Amanda 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 Amanda run\&. It\'s a perl script (if you don\'t have perl, install it first!)\&.
34 The output file name will be
35 \fIlabel\-of\-the\-tape\fR\&.toc in the same directory as
47 Generate the output in tabular form\&.
52 Write the output to a file (\'\-\' for stdout)\&.
57 Evaluate the output file name from
58 \fIsubs\fR, with $_ set to
59 \fIlabel\-of\-the\-tape\fR\&. The
61 option is equivalent to
63 \fI\'s/$_/\&.toc/\'\fR\&.
68 Separate tapes with form\-feeds and display blank lines before totals\&.
73 Marks the last option so the next parameter is the
79 (use \'\-\' for stdin)
83 The standard output has five fields separated by two spaces:
85 # Server:/partition date level size[Kb]
86 0 daily\-05: 19991005 \- \-
87 1 cuisun15:/cuisun15/home 19991005 1 96
88 2 cuinfs:/export/dentiste 19991005 1 96
90 103 cuisg11:/ 19991005 0 4139136
91 103 total: \- \- 16716288
94 In tabular format (\-t), this would look like:
96 # Server:/partition date lev size[Kb]
97 0 daily\-05: 19991005 \- \-
98 1 cuisun15:/cuisun15/home 19991005 1 96
99 2 cuinfs:/export/dentiste 19991005 1 96
101 103 cuisg11:/ 19991005 0 4139136
102 103 total: \- \- 16716288
106 The easiest way to use it is to run
113 amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls \-1t $logdir/log\&.*\&.[0\-9] | head \-1` ; amtoc \-a $log
116 which will generate /usr/local/etc/amanda//daily/\fItape_label\fR\&.toc\&. You may also want to call
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\&>