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 '../entities/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 &A; 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>-v</option></arg>
35 <arg choice='plain'><replaceable>config</replaceable></arg>
40 <refsect1><title>DESCRIPTION</title>
41 <para><emphasis remap='B'>Amcleanup</emphasis>
43 <emphasis remap='I'>&A; Mail Report</emphasis>
44 and updates the &A; databases after a system failure on a tape server host.
45 This cleanup process is normally done automatically as part of the
46 <emphasis remap='B'>amdump</emphasis>
48 <emphasis remap='B'>amdump</emphasis>
49 cannot complete for some reason (usually because of a tape server host crash),
50 <command>amcleanup</command>
51 must be run some time later (usually during system boot).</para>
54 <citerefentry><refentrytitle>amanda</refentrytitle><manvolnum>8</manvolnum></citerefentry>
55 man page for more details about &A;.</para>
58 <refsect1><title>OPTIONS</title>
59 <variablelist remap='TP'>
61 <term><option>-k</option></term>
63 <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>
67 <term><option>-p</option></term>
69 <para>Do the cleanup only if all process listed in the log file are already terminated.</para>
73 <term><option>-v</option></term>
75 <para>Generate verbose output.</para>
81 <refsect1><title>EXAMPLES</title>
82 <para>This example runs the &A; cleanup process by hand after
89 <para>Putting the following line in a system boot script (e.g.
90 <filename>/etc/rc.local</filename>)
91 runs the &A; cleanup process as part of the reboot,
92 eliminating the need to run it by hand.</para>
95 /usr/local/sbin/amcleanup daily
98 <para>If nothing needs to be done,
99 <command>amcleanup</command>
100 exits normally with the message:</para>
103 amcleanup: no unprocessed logfile to clean up.
107 <refsect1><title>SEE ALSO</title>
108 <para><citerefentry><refentrytitle>amanda</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
109 <citerefentry><refentrytitle>amdump</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
110 <ulink url="http://wiki.zmanda.com"/>