X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=man%2Famtoc.8;h=baf93a4a13e855b57d71a12a8fd9b02f5eb71ec6;hb=refs%2Ftags%2Fupstream%2F3.3.1;hp=83de6710323b29289efec2adb54955b5bccea2c5;hpb=0de2ad0a86685398621fb8ffa6990c029681bb3a;p=debian%2Famanda diff --git a/man/amtoc.8 b/man/amtoc.8 index 83de671..baf93a4 100644 --- a/man/amtoc.8 +++ b/man/amtoc.8 @@ -1,79 +1,96 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "AMTOC" 8 "" "" "" -.SH NAME -amtoc \- generate TOC (Table Of Contents) for an AMANDA run -.SH "SYNOPSIS" +'\" t +.\" Title: amtoc +.\" Author: Nicolas Mayencourt +.\" Generator: DocBook XSL Stylesheets v1.76.1 +.\" 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 -.hy 0 -.HP 6 +.\" ----------------------------------------------------------------- +.\" * 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 -.ad -.hy - .SH "DESCRIPTION" - .PP -\fBAmtoc\fR generates a table of contents for an \fBAMANDA\fR run\&. It's a perl script (if you don't have perl, install it first!)\&. - +\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" - -.TP +.PP \fB\-a\fR -The output file name will be \fBlabel\-of\-the\-tape\fR\&.toc in the same directory as \fBlogfile\fR\&. - -.TP +.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 -Display help about \fBamtoc\fR\&. - -.TP +.RS 4 +Display help about +\fBamtoc\fR\&. +.RE +.PP \fB\-t\fR +.RS 4 Generate the output in tabular form\&. - -.TP +.RE +.PP \fB\-f file\fR -Write the output to a file ('\-' for stdout)\&. - -.TP +.RS 4 +Write the output to a file (\*(Aq\-\*(Aq for stdout)\&. +.RE +.PP \fB\-s subs\fR -Evaluate the output file name from \fBsubs\fR, with $_ set to \fBlabel\-of\-the\-tape\fR\&. The \fB\-a\fR option is equivalent to \fB\-s\fR \fI's/$_/\&.toc/'\fR\&. - -.TP +.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\&. - -.TP +.RE +.PP \fB\-\-\fR -Marks the last option so the next parameter is the \fBlogfile\fR\&. - -.TP +.RS 4 +Marks the last option so the next parameter is the +\fIlogfile\fR\&. +.RE +.PP \fBlogfile\fR -(use '\-' for stdin) - +.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 @@ -81,16 +98,10 @@ The standard output has five fields separated by two spaces: \&.\&.\&. 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 @@ -98,34 +109,37 @@ In tabular format (\-t), this would look like: \&.\&.\&. 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 \fBamdump\fR in the \fBcron job:\fR - +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/\fBtape_label\fR\&.toc\&. You may also want to call \fBamtoc\fR after an \fBamflush\fR\&. - +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), cron, perl - -.SH "AUTHOR" - +\fBamanda\fR(8), +\fBamdump\fR(8), +\fBamflush\fR(8), +\fBamgetconf\fR(8) +.PP +The Amanda Wiki: +: http://wiki.zmanda.com/ +.SH "AUTHORS" .PP -Nicolas Mayencourt , University of Geneva/Switzerland : Original text - +\fBNicolas Mayencourt\fR <\&Nicolas\&.Mayencourt@cui\&.unige\&.ch\&> +.RS 4 +University of Geneva/Switzerland +.RE .PP -Stefan G\&. Weichinger, , maintainer of the \fBAMANDA\fR\-documentation: XML\-conversion - +\fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>