1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"
5 <!-- entities files to use -->
6 <!ENTITY % global_entities SYSTEM 'global.entities'>
10 <!-- lifted from troff+man by doclifter -->
11 <refentry id='amcleanup.8'>
14 <refentrytitle>amcleanup</refentrytitle>
15 <manvolnum>8</manvolnum>
21 <refname>amcleanup</refname>
22 <refpurpose>run the Amanda cleanup process after a failure</refpurpose>
28 <!-- body begins here -->
31 <command>amcleanup</command>
32 <arg choice='opt'><option>-k</option></arg>
33 <arg choice='opt'><option>-p</option></arg>
34 <arg choice='opt'><option>-r</option></arg>
35 <arg choice='opt'><option>-v</option></arg>
36 <arg choice='plain'><replaceable>config</replaceable></arg>
41 <refsect1><title>DESCRIPTION</title>
42 <para><emphasis remap='B'>Amcleanup</emphasis>
44 <emphasis remap='I'>Amanda Mail Report</emphasis>
45 and updates the Amanda databases after a system failure on a tape server host.
46 This cleanup process is normally done automatically as part of the
47 <emphasis remap='B'>amdump</emphasis>
49 <emphasis remap='B'>amdump</emphasis>
50 cannot complete for some reason (usually because of a tape server host crash),
51 <command>amcleanup</command>
52 must be run some time later (usually during system boot).</para>
54 <para>The <emphasis remap='B'>amcleanupdisk</emphasis> program is run with
55 the same <arg choice='opt'><option>-r</option></arg> and
56 <arg choice='opt'><option>-v</option></arg> options.</para>
59 <manref name="amanda" vol="8"/>
60 man page for more details about Amanda.</para>
63 <refsect1><title>OPTIONS</title>
64 <variablelist remap='TP'>
66 <term><option>-k</option></term>
68 <para>Kill all process listed in the log file are their child. if there is no log file, then kill all amdump and amflush process and their child.</para>
72 <term><option>-p</option></term>
74 <para>Do the cleanup only if all process listed in the log file are already terminated.</para>
78 <term><option>-r</option></term>
80 <para>Remove bad file in holding disk. This options is passed to amcleanupdisk.</para>
84 <term><option>-v</option></term>
86 <para>Generate verbose output. This options is passed to amcleanupdisk.</para>
92 <refsect1><title>EXAMPLES</title>
93 <para>This example runs the Amanda cleanup process by hand after
100 <para>Putting the following line in a system boot script (e.g.
101 <filename>/etc/rc.local</filename>)
102 runs the Amanda cleanup process as part of the reboot,
103 eliminating the need to run it by hand.</para>
106 /usr/local/sbin/amcleanup daily
109 <para>If nothing needs to be done,
110 <command>amcleanup</command>
111 exits normally with the message:</para>
114 amcleanup: no unprocessed logfile to clean up.
119 <manref name="amdump" vol="8"/>