3 .ie '\\$3'' \\fB\\$1\\fP \\fI\\$2\\fP
4 .el .ie '\\$2'' \\fB\\$1\\fP [ \\fI\\$3\\fP ]
5 .el \\fB\\$1\\fP \\fI\\$2\\fP [ \\fI\\$3\\fP ]
8 amtoc \- generate TOC (Table Of Contents) for an Amanda run
32 generates a table of contents for an Amanda run.
33 It's a perl script (if you don't have perl, install it first!).
37 The output file name will be
38 .IR label-of-the-tape .toc
39 in the same directory as
47 Generate the output in tabular form.
50 Write the output to a file ('-' for stdout).
53 Evaluate the output file name from
56 .IR label-of-the-tape .
59 option is equivalent to
64 Separate tapes with form-feeds and display blank lines before totals.
67 Marks the last option so the next parameter is the
73 The standard output has five fields separated by two spaces:
77 # Server:/partition date level size[Kb]
78 0 daily-05: 19991005 - -
79 1 cuisun15:/cuisun15/home 19991005 1 96
80 2 cuinfs:/export/dentiste 19991005 1 96
82 103 cuisg11:/ 19991005 0 4139136
83 103 total: - - 16716288
86 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
99 The easiest way to use it is to run
109 amdump @DEFAULT_CONFIG@ ; logdir=`amgetconf @DEFAULT_CONFIG@ logdir` ; log=`ls -1t $logdir/log.*.[0-9] | head -1` ; amtoc -a $log
113 which will generate @CONFIG_DIR@/@DEFAULT_CONFIG@/\fItape_label\fR.toc.
114 You may also want to call
126 Nicolas MAYENCOURT <Nicolas.Mayencourt@cui.unige.ch>
128 University of Geneva/Switzerland