Man page - amtoc(8)
Packages contas this manual
- amservice(8)
- amcheckdump(8)
- amrestore(8)
- amcleanupdisk(8)
- tapelist(5)
- amoldrecover(8)
- amcheck(8)
- amoverview(8)
- amanda-auth-ssl(7)
- amadmin(8)
- script-email(8)
- amcrypt-ossl(8)
- amtapetype(8)
- amanda-devices(7)
- amanda-scripts(7)
- disklist(5)
- amcrypt(8)
- amsamba(8)
- amzfs-snapshot(8)
- amstar(8)
- amflush(8)
- amanda.conf(5)
- amfetchdump(8)
- amanda-auth(7)
- amstatus(8)
- amanda-compatibility(7)
- amcleanup(8)
- amreport(8)
- amvault(8)
- amcrypt-ossl-asym(8)
- amanda-archive-format(5)
- amanda-applications(7)
- amanda-rest-server(8)
- amcheckdb(8)
- amserverconfig(8)
- amcryptsimple(8)
- amsuntar(8)
- amanda-security.conf(5)
- amanda(8)
- amanda-interactivity(7)
- amaespipe(8)
- ambackup(8)
- amarchiver(8)
- amanda-changers(7)
- amzfs-sendrecv(8)
- amanda-taperscan(7)
- amplot(8)
- amanda-match(7)
- amrmtape(8)
- amgtar(8)
- amanda-client.conf(5)
- amtoc(8)
- amaddclient(8)
- amanda-command-file(5)
- amgetconf(8)
- ambsdtar(8)
- amdump_client(8)
- amlabel(8)
- amdevcheck(8)
- amrecover(8)
- amtape(8)
- amgpgcrypt(8)
- amraw(8)
- amssl(8)
- amreindex(8)
- amdump(8)
- activate-devpay(1)
- ampgsql(8)
apt-get install amanda-common
Manual
| AMTOC(8) | System Administration Commands | AMTOC(8) |
NAME
amtoc - generate TOC (Table Of Contents) for an Amanda run
SYNOPSIS
amtoc [-a] [-i] [-t] [-f file] [-s subs] [-w] [--] logfile
DESCRIPTION
Amtoc generates a table of contents for an Amanda run. It's a perl script (if you don't have perl, install it first!).
OPTIONS
-a
-i
-t
-f file
-s subs
-w
--
logfile
OUTPUT FORMAT
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
USAGE
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.
SEE ALSO
amanda(8), amdump(8), amflush(8), amgetconf(8)
The Amanda Wiki: : http://wiki.zmanda.com/
AUTHORS
Nicolas Mayencourt <Nicolas.Mayencourt@cui.unige.ch>
Stefan G. Weichinger <sgw@amanda.org>
| 01/25/2025 | Amanda 3.5.4 |