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.3
10 .TH "AMFLUSH" "8" "01/10/2013" "Amanda 3\&.3\&.3" "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] [\-\-exact\-match] [\-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 \fB\-\-exact\-match\fR
90 The host and disk are parsed as exact values
93 \fIhost\fR [\fIdisk\fR]*
95 Specify the host and disk on which the command will work \-\- see the description of DLE specifications in
96 \fBamanda-match\fR(7)\&.
99 \fB\-o \fR\fB\fIconfigoption\fR\fR
101 See the "CONFIGURATION OVERRIDE" section in
105 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
110 will look in the holding disks specified by the
112 file in /usr/local/etc/amanda/\fIconfig\fR
113 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
120 man page for more details about Amanda\&.
124 will search for holding areas associated with the
126 configuration\&. After you select which holding area to flush,
128 writes the data to tape, updates the databases and sends a mail report similar to
132 Scanning /amanda\-hold\&.\&.\&.
133 20001113: found Amanda directory\&.
134 20001114: found Amanda directory\&.
136 Multiple Amanda directories, please pick one by letter:
139 Select directories to flush [A\&.\&.B]: [ALL] all
141 Flushing dumps in 20001113, 20001114,
143 to tape drive /dev/rmt/0mn\&.
144 Expecting tape DMP014 or a new tape\&. (The last dumps were to tape DMP013)
145 Are you sure you want to do this? yes
146 Running in background, you can log off now\&.
147 You\*(Aqll get mail when amflush is finished\&.
150 The following example causes amflush to flush everything to tape, then ejects tape, using \*(Aqat\*(Aq to run the task in the background\&.
152 % echo \*(Aqamflush \-b \-f MyConfig && mt offline\*(Aq | at now
156 The exit code of \fBamflush\fR is the ORed value of:
161 8 = Don\*(Aqt know the status of a dle (RESULT_MISSING in the report)
162 16 = tape error or no more tape
168 \fBamanda-match\fR(7)
171 : http://wiki.zmanda.com/
174 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
176 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>