0ec12ffda0fe37c453fdc41d2b8b33dd55cb0b9b
[debian/amanda] / man / amcleanup.8
1 '\" t
2 .\"     Title: amcleanup
3 .\"    Author: James da Silva <jds@amanda.org>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
5 .\"      Date: 11/05/2009
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 2.6.1p2
8 .\"  Language: English
9 .\"
10 .TH "AMCLEANUP" "8" "11/05/2009" "Amanda 2\&.6\&.1p2" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 amcleanup \- run the \fIAmanda\fR cleanup process after a failure
23 .SH "SYNOPSIS"
24 .HP \w'\fBamcleanup\fR\ 'u
25 \fBamcleanup\fR [\fB\-k\fR] [\fB\-p\fR] [\fB\-v\fR] \fIconfig\fR
26 .SH "DESCRIPTION"
27 .PP
28 \fBAmcleanup\fR
29 generates the
30 \fI\fIAmanda\fR\fR\fI Mail Report\fR
31 and updates the
32 \fIAmanda\fR
33 databases after a system failure on a tape server host\&. This cleanup process is normally done automatically as part of the
34 \fBamdump\fR
35 program, but if
36 \fBamdump\fR
37 cannot complete for some reason (usually because of a tape server host crash),
38 \fBamcleanup\fR
39 must be run some time later (usually during system boot)\&.
40 .PP
41 See the
42 \fBamanda\fR(8)
43 man page for more details about
44 \fIAmanda\fR\&.
45 .SH "OPTIONS"
46 .PP
47 \fB\-k\fR
48 .RS 4
49 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\&.
50 .RE
51 .PP
52 \fB\-p\fR
53 .RS 4
54 Do the cleanup only if all process listed in the log file are already terminated\&.
55 .RE
56 .PP
57 \fB\-v\fR
58 .RS 4
59 Generate verbose output\&.
60 .RE
61 .SH "EXAMPLES"
62 .PP
63 This example runs the
64 \fIAmanda\fR
65 cleanup process by hand after a failure\&.
66 .nf
67 % amcleanup daily
68 .fi
69 .PP
70 Putting the following line in a system boot script (e\&.g\&.
71 /etc/rc\&.local) runs the
72 \fIAmanda\fR
73 cleanup process as part of the reboot, eliminating the need to run it by hand\&.
74 .nf
75 /usr/local/sbin/amcleanup daily
76 .fi
77 .PP
78 If nothing needs to be done,
79 \fBamcleanup\fR
80 exits normally with the message:
81 .nf
82 amcleanup: no unprocessed logfile to clean up\&.
83 .fi
84 .SH "SEE ALSO"
85 .PP
86 \fBamanda\fR(8),
87 \fBamdump\fR(8),
88 : http://wiki.zmanda.com
89 .SH "AUTHORS"
90 .PP
91 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
92 .PP
93 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>