1AMTOC(8)                System Administration Commands                AMTOC(8)
2
3
4

NAME

6       amtoc - generate TOC (Table Of Contents) for an Amanda run
7

SYNOPSIS

9       amtoc [-a] [-i] [-t] [-f file] [-s subs] [-w] [--] logfile
10

DESCRIPTION

12       Amtoc generates a table of contents for an Amanda run. It´s a perl
13       script (if you don´t have perl, install it first!).
14

OPTIONS

16       -a
17           The output file name will be label-of-the-tape.toc in the same
18           directory as logfile.
19
20       -i
21           Display help about amtoc.
22
23       -t
24           Generate the output in tabular form.
25
26       -f file
27           Write the output to a file (´-´ for stdout).
28
29       -s subs
30           Evaluate the output file name from subs, with $_ set to
31           label-of-the-tape. The -a option is equivalent to -s ´s/$_/.toc/´.
32
33       -w
34           Separate tapes with form-feeds and display blank lines before
35           totals.
36
37       --
38           Marks the last option so the next parameter is the logfile.
39
40       logfile
41           (use ´-´ for stdin)
42

OUTPUT FORMAT

44       The standard output has five fields separated by two spaces:
45       #  Server:/partition  date  level  size[Kb]
46       0  daily-05:  19991005  -  -
47       1  cuisun15:/cuisun15/home  19991005  1  96
48       2  cuinfs:/export/dentiste  19991005  1  96
49         ...
50       103  cuisg11:/  19991005  0  4139136
51       103  total:  -  -  16716288
52
53       In tabular format (-t), this would look like:
54         #  Server:/partition           date      lev  size[Kb]
55         0  daily-05:                   19991005    -         -
56         1  cuisun15:/cuisun15/home     19991005    1        96
57         2  cuinfs:/export/dentiste     19991005    1        96
58         ...
59       103  cuisg11:/                   19991005    0   4139136
60       103  total:                      -           -  16716288
61

USAGE

63       The easiest way to use it is to run amtoc right after amdump in the
64       cron job:
65       amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls -1t $logdir/log.*.[0-9] | head -1` ; amtoc -a $log
66
67       which will generate /usr/local/etc/amanda//daily/tape_label.toc. You
68       may also want to call amtoc after an amflush.
69

SEE ALSO

71       amanda(8), amdump(8), amflush(8), amgetconf(8)
72
73       The Amanda Wiki: : http://wiki.zmanda.com/
74

AUTHORS

76       Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
77           University of Geneva/Switzerland
78
79       Stefan G. Weichinger <sgw@amanda.org>
80
81
82
83Amanda 3.1.3                      10/04/2010                          AMTOC(8)
Impressum