Imported Upstream version 3.3.2
[debian/amanda] / man / amdump.8
1 '\" t
2 .\"     Title: amdump
3 .\"    Author: James da Silva <jds@amanda.org>
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5 .\"      Date: 07/25/2012
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 3.3.2
8 .\"  Language: English
9 .\"
10 .TH "AMDUMP" "8" "07/25/2012" "Amanda 3\&.3\&.2" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 amdump \- back up all disks in an Amanda configuration
32 .SH "SYNOPSIS"
33 .HP \w'\fBamdump\fR\ 'u
34 \fBamdump\fR [\fB\-\-no\-taper\fR] [\fB\-o\fR\ \fIconfigoption\fR...] \fIconfig\fR [\fIhost\fR\ [\fIdisk\fR...]...]
35 .SH "DESCRIPTION"
36 .PP
37 \fBAmdump\fR
38 is the main interface to the Amanda backup process\&. It loads the specified configuration and attempts to back up every disk specified by the
39 \fBdisklist\fR(5)\&.
40 \fBAmdump\fR
41 is normally run by
42 \fBcron\fR\&.
43 .PP
44 The command optionally takes a set of DLE specifications (see
45 \fBamanda-match\fR(7)) to narrow the DLEs that will be dumped\&. All disks are dumped if no expressions are given\&.
46 .PP
47 If a file named
48 hold
49 exists in the configuration directory,
50 \fBamdump\fR
51 will wait until it is removed before starting the backups\&. This allows scheduled backups to be delayed when circumstances warrant, for example, if the tape device is being used for some other purpose\&. While waiting,
52 \fBamdump\fR
53 checks for the hold file every minute\&.
54 .PP
55 In some cases it is desirable to dump all Amanda clients to holding disk without writing anything to storage media\&. The
56 \fB\-\-no\-taper\fR
57 option instructs Amanda to not start the taper, and thus enter degraded mode immediately\&.
58 .PP
59 See the
60 \fBamanda\fR(8)
61 man page for more details about Amanda\&.
62 .SH "OPTIONS"
63 .PP
64 \fIhost\fR [\fIdisk\fR]*
65 .RS 4
66 Specify the host and disk on which the command will work \-\- see the description of DLE specifications in
67 \fBamanda-match\fR(7)\&.
68 .RE
69 .PP
70 \fB\-o \fR\fB\fIconfigoption\fR\fR
71 .RS 4
72 See the "CONFIGURATION OVERRIDE" section in
73 \fBamanda\fR(8)\&.
74 .RE
75 .SH "EXAMPLE"
76 .PP
77 Here is a typical crontab entry\&. It runs
78 \fBamdump\fR
79 every weeknight at 1 a\&.m\&. as user
80 \fBbin\fR:
81 .nf
82 0 1 * * 1\-5 bin /usr/local/sbin/amdump daily
83 .fi
84 .PP
85 Please see the
86 \fBcrontab\fR(5)
87 or
88 \fBcrontab\fR(1)
89 manual page for the correct crontab format for your system\&.
90 .SH "MESSAGES"
91 .PP
92 amdump: waiting for hold file to be removed
93 .RS 4
94 The "hold" file exists and
95 \fBamdump\fR
96 is waiting for it to be removed before starting backups\&.
97 .RE
98 .PP
99 amdump: amdump or amflush is already running, or you must run amcleanup
100 .RS 4
101 Amdump detected another
102 \fBamdump\fR
103 or
104 \fBamflush\fR
105 running, or the remains of a previous incomplete
106 \fBamdump\fR
107 or
108 \fBamflush\fR
109 run\&. This run is terminated\&. If the problem is caused by the remains of a previous run, you must execute
110 \fBamcleanup\fR(8)
111 and then rerun
112 \fBamdump\fR\&.
113 .RE
114 .SH "EXIT CODE"
115
116 The exit code of \fBamdump\fR is the ORed value of:
117 .nf
118  0  = success
119  1  = error
120  2  = a dle give strange message
121  4  = a dle failed
122  8  = Don\*(Aqt know the status of a dle (RESULT_MISSING in the report)
123  16 = tape error or no more tape
124 .fi
125 .SH "SEE ALSO"
126 .PP
127 \fBamanda\fR(8),
128 \fBamcheck\fR(8),
129 \fBamcleanup\fR(8),
130 \fBamrestore\fR(8),
131 \fBamflush\fR(8),
132 \fBcron\fR(8),
133 \fBamanda-match\fR(7)
134 .PP
135 The Amanda Wiki:
136 : http://wiki.zmanda.com/
137 .SH "AUTHORS"
138 .PP
139 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
140 .PP
141 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>