Imported Upstream version 2.4.5
[debian/amanda] / docs / amtoc.8.txt
1
2                                 amtoc
3 Prev  Chapter 35. The AMANDA Manual Pages.  Next
4
5 -------------------------------------------------------------------------------
6
7 Name
8
9 amtoc \14 generate TOC (Table Of Contents) for an AMANDA run
10
11 Synopsis
12
13 amtoc [-a ] [-i ] [-t ] [ -f file ] [ -s subs ] [-w ] [-- ] logfile
14
15 DESCRIPTION
16
17 Amtoc generates a table of contents for an AMANDA run. It's a perl script (if
18 you don't have perl, install it first!).
19
20 OPTIONS
21
22
23
24   -a
25       The output file name will be label-of-the-tape.toc in the same directory
26       as logfile.
27
28   -i
29       Display help about amtoc.
30
31   -t
32       Generate the output in tabular form.
33
34   -f file
35       Write the output to a file ('-' for stdout).
36
37   -s subs
38       Evaluate the output file name from subs, with $_ set to label-of-the-
39       tape. The -a option is equivalent to -s 's/$_/.toc/'.
40
41   -w
42       Separate tapes with form-feeds and display blank lines before totals.
43
44   --
45       Marks the last option so the next parameter is the logfile.
46
47   logfile
48       (use '-' for stdin)
49
50
51 OUTPUT FORMAT
52
53 The standard output has five fields separated by two spaces:
54
55 #  Server:/partition  date  level  size[Kb]
56 0  daily-05:  19991005  -  -
57 1  cuisun15:/cuisun15/home  19991005  1  96
58 2  cuinfs:/export/dentiste  19991005  1  96
59   ...
60 103  cuisg11:/  19991005  0  4139136
61 103  total:  -  -  16716288
62
63
64 In tabular format (-t), this would look like:
65
66   #  Server:/partition           date      lev  size[Kb]
67   0  daily-05:                   19991005    -         -
68   1  cuisun15:/cuisun15/home     19991005    1        96
69   2  cuinfs:/export/dentiste     19991005    1        96
70   ...
71 103  cuisg11:/                   19991005    0   4139136
72 103  total:                      -           -  16716288
73
74
75 USAGE
76
77 The easiest way to use it is to run amtoc right after amdump in the cron job:
78
79 amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls -1t $logdir/log.*.[0-
80 9] | head -1` ; amtoc -a $log
81 which will generate /usr/local/etc/amanda//daily/tape_label.toc. You may also
82 want to call amtoc after an amflush.
83
84 SEE ALSO
85
86 amanda(8), amdump(8), amflush(8), amgetconf(8), cron, perl
87
88 AUTHOR
89
90 Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>, University of Geneva/
91 Switzerland : Original text
92 Stefan G. Weichinger, <sgw@amanda.org>, maintainer of the AMANDA-documentation:
93 XML-conversion
94 -------------------------------------------------------------------------------
95
96 Prev         Up       Next
97 amtapetype  Home  amverify
98