📄 amtoc.8
字号:
.\" Title: amtoc.\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>.\" Date: 05/13/2008.\" Manual: .\" Source: .\".TH "AMTOC" "8" "05/13/2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"amtoc - generate TOC (Table Of Contents) for an Amanda run.SH "SYNOPSIS".HP 6\fBamtoc\fR [\-a] [\-i] [\-t] [\-f\ \fIfile\fR] [\-s\ \fIsubs\fR] [\-w] [\-\-] \fIlogfile\fR.SH "DESCRIPTION".PP\fIAmtoc\fRgenerates a table of contents for an\fIAmanda\fRrun\. It\'s a perl script (if you don\'t have perl, install it first!)\..SH "OPTIONS".PP\fB\-a\fR.RS 4The output file name will be\fIlabel\-of\-the\-tape\fR\.toc in the same directory as\fIlogfile\fR\..RE.PP\fB\-i\fR.RS 4Display help about\fBamtoc\fR\..RE.PP\fB\-t\fR.RS 4Generate the output in tabular form\..RE.PP\fB\-f file\fR.RS 4Write the output to a file (\'\-\' for stdout)\..RE.PP\fB\-s subs\fR.RS 4Evaluate the output file name from\fIsubs\fR, with $_ set to\fIlabel\-of\-the\-tape\fR\. The\fB\-a\fRoption is equivalent to\fB\-s\fR\fI\'s/$_/\.toc/\'\fR\..RE.PP\fB\-w\fR.RS 4Separate tapes with form\-feeds and display blank lines before totals\..RE.PP\fB\-\-\fR.RS 4Marks the last option so the next parameter is the\fIlogfile\fR\..RE.PP\fBlogfile\fR.RS 4(use \'\-\' for stdin).RE.SH "OUTPUT FORMAT".PPThe standard output has five fields separated by two spaces:.sp.RS 4.nf# Server:/partition date level size[Kb]0 daily\-05: 19991005 \- \-1 cuisun15:/cuisun15/home 19991005 1 962 cuinfs:/export/dentiste 19991005 1 96 \.\.\.103 cuisg11:/ 19991005 0 4139136103 total: \- \- 16716288.fi.RE.PPIn tabular format (\-t), this would look like:.sp.RS 4.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 4139136103 total: \- \- 16716288.fi.RE.SH "USAGE".PPThe easiest way to use it is to run\fBamtoc\fRright after\fIamdump\fRin the\fIcron job:\fR.sp.RS 4.nfamdump daily ; logdir=`amgetconf daily logdir` ; log=`ls \-1t $logdir/log\.*\.[0\-9] | head \-1` ; amtoc \-a $log.fi.RE.PPwhich will generate /usr/local/etc/amanda//daily/\fItape_label\fR\.toc\. You may also want to call\fBamtoc\fRafter an\fIamflush\fR\..SH "SEE ALSO".PP\fBamanda\fR(8),\fBamdump\fR(8),\fBamflush\fR(8),\fBamgetconf\fR(8), cron, perl,\fI\%http://wiki.zmanda.com\fR.SH "AUTHOR".PPNicolas Mayencourt<Nicolas\.Mayencourt@cui\.unige\.ch>, University of Geneva/Switzerland : Original text.PPStefan G\. Weichinger,<sgw@amanda\.org>, maintainer of the\fIAmanda\fR\-documentation: XML\-conversion
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -