GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AMTOC(8) System Administration Commands AMTOC(8)

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

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

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

-a
The output file name will be label-of-the-tape.toc in the same directory as logfile.

-i

Display help about amtoc.

-t

Generate the output in tabular form.

-f file

Write the output to a file ('-' for stdout).

-s subs

Evaluate the output file name from subs, with $_ set to label-of-the-tape. The -a option is equivalent to -s's/$_/.toc/'.

-w

Separate tapes with form-feeds and display blank lines before totals.

--

Marks the last option so the next parameter is the logfile.

logfile

(use '-' for stdin)

The standard output has five fields separated by two spaces:
#  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

In tabular format (-t), this would look like:

  #  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

The easiest way to use it is to run amtoc right after amdump in the cron job:
amdump daily ; logdir=`amgetconf daily logdir` ; log=`ls -1t $logdir/log.*.[0-9] | head -1` ; amtoc -a $log

which will generate /usr/local/etc/amanda//daily/tape_label.toc. You may also want to call amtoc after an amflush.

amanda(8), amdump(8), amflush(8), amgetconf(8)

The Amanda Wiki: : http://wiki.zmanda.com/

Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
University of Geneva/Switzerland

Stefan G. Weichinger <sgw@amanda.org>

02/09/2016 Amanda 3.3.9

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.