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='amflush.8'>
14 <refentrytitle>amflush</refentrytitle>
15 <manvolnum>8</manvolnum>
21 <refname>amflush</refname>
22 <refpurpose>flush &A; backup files from holding disk to tape</refpurpose>
28 <!-- body begins here -->
31 <command>amflush</command>
32 <arg choice='opt'>-b</arg>
33 <arg choice='opt'>-f</arg>
34 <arg choice='opt'>-s</arg>
35 <arg choice='opt'>-D <replaceable>datestamp</replaceable></arg>
36 <arg choice='plain'><replaceable>config</replaceable></arg>
37 <arg choice='opt' rep='repeat'>
38 <arg choice='plain'><replaceable>host</replaceable></arg>
39 <arg choice='opt' rep='repeat'><replaceable>disk</replaceable></arg>
41 <arg choice='plain' rep='repeat'><group><arg choice='plain'>-o </arg><replaceable>configoption</replaceable></group></arg>
46 <refsect1><title>DESCRIPTION</title>
47 <para><emphasis remap='B'>Amflush</emphasis>
48 writes &A; backups from the holding disks to tape,
49 and updates the &A; info database and &tapelist; accordingly.
50 Backups may stay in a holding disk when something is wrong with the tape
52 <emphasis remap='B'>amdump</emphasis>
54 When this happens, the problem must be corrected and
55 <command>amflush</command>
59 <refsect1><title>OPTIONS</title>
60 <variablelist remap='TP'>
62 <term><option>-b</option></term>
65 <command>amflush</command>
66 in batch mode. All datestamps are selected unless specified.
67 The flush is started without confirmation.</para>
71 <term><option>-f</option></term>
74 <command>amflush</command>
76 <emphasis remap='B'>Amflush</emphasis>
77 normally detaches itself from the tty and runs as a background process.
81 <command>amflush</command>
82 stays in the foreground.
84 <command>amflush</command>
85 is run as part of another script that, for example, advances the tape
86 after the flush is completed.</para>
90 <term><option>-s</option></term>
92 <para>Write log to stdout/stderr instead of the amflush log file. Requires the
98 <term><option>-D datestamp</option></term>
100 <para>specify a datestamp expression you want to flush, see the
101 "DATESTAMP EXPRESSION" section of
102 <citerefentry><refentrytitle>amanda</refentrytitle><manvolnum>8</manvolnum></citerefentry>
104 <option>-D 20001225-7</option>
106 dumps from 25 december 2000 to 27 december 2000.</para>
111 <term><replaceable>host</replaceable> [<replaceable>disk</replaceable>]*</term>
113 <para>Specify the host and disk on which the command will work.</para>
118 <term><emphasis remap='B'>-o</emphasis> <replaceable>configoption</replaceable></term>
120 <para>See the "<emphasis remap='B'>CONFIGURATION OVERRIDE</emphasis>" section in <citerefentry><refentrytitle>amanda</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
126 <para>You can specify many host/disk expressions, only disks that
127 match an expression will be flushed. All disks are flushed if no
128 expressions are given. see the "HOST & DISK EXPRESSION" section of
129 <citerefentry><refentrytitle>amanda</refentrytitle><manvolnum>8</manvolnum></citerefentry>
130 for a description.</para>
132 <para><emphasis remap='B'>Amflush</emphasis>
133 will look in the holding disks specified by the
134 <emphasis remap='I'>amanda.conf</emphasis>
135 file in /usr/local/etc/amanda/<emphasis remap='I'>config</emphasis>
136 for any non-empty &A; work directories.
137 It then prompts you to select a directory
138 or to process all of the directories.
139 The work directories in the holding disks are named by the date at the time
140 <emphasis remap='B'>amdump</emphasis>
142 <literal>19910215</literal>.</para>
145 <citerefentry><refentrytitle>amanda</refentrytitle><manvolnum>8</manvolnum></citerefentry>
146 man page for more details about &A;.</para>
149 <refsect1><title>EXAMPLE</title>
150 <para><emphasis remap='B'>Amflush</emphasis>
151 will search for holding areas associated with the
152 <emphasis remap='I'>daily</emphasis>
154 After you select which holding area to flush,
155 <command>amflush</command>
156 writes the data to tape, updates the databases and sends
157 a mail report similar to
158 <citerefentry><refentrytitle>amdump</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
162 Scanning /amanda-hold...
163 20001113: found &A; directory.
164 20001114: found &A; directory.
166 Multiple &A; directories, please pick one by letter:
169 Select directories to flush [A..B]: [ALL] all
171 Flushing dumps in 20001113, 20001114,
173 to tape drive /dev/rmt/0mn.
174 Expecting tape DMP014 or a new tape. (The last dumps were to tape DMP013)
175 Are you sure you want to do this? yes
176 Running in background, you can log off now.
177 You'll get mail when amflush is finished.
180 <para>The following example causes amflush to flush everything to tape, then
181 ejects tape, using 'at' to run the task in the background.</para>
184 % echo 'amflush -b -f MyConfig && mt offline' | at now
188 <refsect1><title>EXIT CODE</title>
189 The exit code of <command>amflush</command> is the ORed value of:
194 8 = Don't know the status of a dle (RESULT_MISSING in the report)
195 16 = tape error or no more tape
199 <refsect1><title>SEE ALSO</title>
201 <citerefentry><refentrytitle>amanda</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
202 <citerefentry><refentrytitle>amdump</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
203 <ulink url="http://wiki.zmanda.com"/>