File: amtoc.8

package info (click to toggle)
amanda 1%3A3.3.1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 22,360 kB
  • sloc: ansic: 214,899; perl: 58,075; sh: 16,954; xml: 13,853; makefile: 2,228; awk: 431; lex: 405; yacc: 343; tcl: 118; sql: 19; sed: 16; php: 2
file content (145 lines) | stat: -rw-r--r-- 3,881 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
'\" t
.\"     Title: amtoc
.\"    Author: Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
.\"      Date: 02/21/2012
.\"    Manual: System Administration Commands
.\"    Source: Amanda 3.3.1
.\"  Language: English
.\"
.TH "AMTOC" "8" "02/21/2012" "Amanda 3\&.3\&.1" "System Administration Commands"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
amtoc \- generate TOC (Table Of Contents) for an Amanda run
.SH "SYNOPSIS"
.HP \w'\fBamtoc\fR\ 'u
\fBamtoc\fR [\-a] [\-i] [\-t] [\-f\ \fIfile\fR] [\-s\ \fIsubs\fR] [\-w] [\-\-] \fIlogfile\fR
.SH "DESCRIPTION"
.PP
\fIAmtoc\fR
generates a table of contents for an Amanda run\&. It\*(Aqs a perl script (if you don\*(Aqt have perl, install it first!)\&.
.SH "OPTIONS"
.PP
\fB\-a\fR
.RS 4
The output file name will be
\fIlabel\-of\-the\-tape\fR\&.toc in the same directory as
\fIlogfile\fR\&.
.RE
.PP
\fB\-i\fR
.RS 4
Display help about
\fBamtoc\fR\&.
.RE
.PP
\fB\-t\fR
.RS 4
Generate the output in tabular form\&.
.RE
.PP
\fB\-f file\fR
.RS 4
Write the output to a file (\*(Aq\-\*(Aq for stdout)\&.
.RE
.PP
\fB\-s subs\fR
.RS 4
Evaluate the output file name from
\fIsubs\fR, with $_ set to
\fIlabel\-of\-the\-tape\fR\&. The
\fB\-a\fR
option is equivalent to
\fB\-s\fR
\fI\*(Aqs/$_/\&.toc/\*(Aq\fR\&.
.RE
.PP
\fB\-w\fR
.RS 4
Separate tapes with form\-feeds and display blank lines before totals\&.
.RE
.PP
\fB\-\-\fR
.RS 4
Marks the last option so the next parameter is the
\fIlogfile\fR\&.
.RE
.PP
\fBlogfile\fR
.RS 4
(use \*(Aq\-\*(Aq for stdin)
.RE
.SH "OUTPUT FORMAT"
.PP
The standard output has five fields separated by two spaces:
.nf
#  Server:/partition  date  level  size[Kb]
0  daily\-05:  19991005  \-  \-
1  cuisun15:/cuisun15/home  19991005  1  96
2  cuinfs:/export/dentiste  19991005  1  96
  \&.\&.\&.
103  cuisg11:/  19991005  0  4139136
103  total:  \-  \-  16716288
.fi
.PP
In tabular format (\-t), this would look like:
.nf
  #  Server:/partition           date      lev  size[Kb]
  0  daily\-05:                   19991005    \-         \-
  1  cuisun15:/cuisun15/home     19991005    1        96
  2  cuinfs:/export/dentiste     19991005    1        96
  \&.\&.\&.
103  cuisg11:/                   19991005    0   4139136
103  total:                      \-           \-  16716288
.fi
.SH "USAGE"
.PP
The easiest way to use it is to run
\fBamtoc\fR
right after
\fIamdump\fR
in the
\fIcron job:\fR
.nf
amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls \-1t $logdir/log\&.*\&.[0\-9] | head \-1` ; amtoc \-a $log
.fi
.PP
which will generate /usr/local/etc/amanda//daily/\fItape_label\fR\&.toc\&. You may also want to call
\fBamtoc\fR
after an
\fIamflush\fR\&.
.SH "SEE ALSO"
.PP
\fBamanda\fR(8),
\fBamdump\fR(8),
\fBamflush\fR(8),
\fBamgetconf\fR(8)
.PP
The Amanda Wiki:
: http://wiki.zmanda.com/
.SH "AUTHORS"
.PP
\fBNicolas Mayencourt\fR <\&Nicolas\&.Mayencourt@cui\&.unige\&.ch\&>
.RS 4
University of Geneva/Switzerland
.RE
.PP
\fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>