3 .\" Author: James da Silva <jds@amanda.org>
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.3.1
10 .TH "AMFLUSH" "8" "02/21/2012" "Amanda 3\&.3\&.1" "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 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 amflush \- flush Amanda backup files from holding disk to tape
33 .HP \w'\fBamflush\fR\ 'u
34 \fBamflush\fR [\-b] [\-f] [\-s] [\-D\ \fIdatestamp\fR] [\fB\-o\fR\ \fIconfigoption\fR...] \fIconfig\fR [\fIhost\fR\ [\fIdisk\fR...]...]
38 writes Amanda backups from the holding disks to tape, and updates the Amanda info database and
40 accordingly\&. It is similar to amdump, but does not perform any backup operations on Amanda clients\&. Backups may stay in a holding disk when something is wrong with the tape at the time
42 is run\&. When this happens, the problem must be corrected and
46 The command optionally takes a set of DLE specifications (see
47 \fBamanda-match\fR(7)) to narrow the DLEs for which dumps will be flushed\&. All dumps in holding are flushed if no expressions are given\&.
54 in batch mode\&. All datestamps are selected unless specified\&. The flush is started without confirmation\&.
63 normally detaches itself from the tty and runs as a background process\&. With the
67 stays in the foreground\&. This is useful if
69 is run as part of another script that, for example, advances the tape after the flush is completed\&.
74 Write log to stdout/stderr instead of the amflush log file\&. Requires the
81 specify a datestamp expression you want to flush; see
83 for details on the format of this expression\&.
85 will flush all dumps from 25 december 2000 to 27 december 2000\&.
88 \fIhost\fR [\fIdisk\fR]*
90 Specify the host and disk on which the command will work \-\- see the description of DLE specifications in
91 \fBamanda-match\fR(7)\&.
94 \fB\-o \fR\fB\fIconfigoption\fR\fR
96 See the "CONFIGURATION OVERRIDE" section in
100 You can specify many host/disk expressions, only disks that match an expression will be flushed\&. All disks are flushed if no expressions are given\&. see the "HOST & DISK EXPRESSION" section of
105 will look in the holding disks specified by the
107 file in /usr/local/etc/amanda/\fIconfig\fR
108 for any non\-empty Amanda work directories\&. It then prompts you to select a directory or to process all of the directories\&. The work directories in the holding disks are named by the date at the time
115 man page for more details about Amanda\&.
119 will search for holding areas associated with the
121 configuration\&. After you select which holding area to flush,
123 writes the data to tape, updates the databases and sends a mail report similar to
127 Scanning /amanda\-hold\&.\&.\&.
128 20001113: found Amanda directory\&.
129 20001114: found Amanda directory\&.
131 Multiple Amanda directories, please pick one by letter:
134 Select directories to flush [A\&.\&.B]: [ALL] all
136 Flushing dumps in 20001113, 20001114,
138 to tape drive /dev/rmt/0mn\&.
139 Expecting tape DMP014 or a new tape\&. (The last dumps were to tape DMP013)
140 Are you sure you want to do this? yes
141 Running in background, you can log off now\&.
142 You\*(Aqll get mail when amflush is finished\&.
145 The following example causes amflush to flush everything to tape, then ejects tape, using \*(Aqat\*(Aq to run the task in the background\&.
147 % echo \*(Aqamflush \-b \-f MyConfig && mt offline\*(Aq | at now
151 The exit code of \fBamflush\fR is the ORed value of:
156 8 = Don\*(Aqt know the status of a dle (RESULT_MISSING in the report)
157 16 = tape error or no more tape
163 \fBamanda-match\fR(7)
166 : http://wiki.zmanda.com/
169 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
171 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>