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 'global.entities'>
10 <refentry id='amfetchdump.8'>
13 <refentrytitle>amfetchdump</refentrytitle>
14 <manvolnum>8</manvolnum>
20 <refname>amfetchdump</refname>
21 <refpurpose>extract backup images from multiple Amanda tapes.</refpurpose>
27 <!-- body begins here -->
30 <command>amfetchdump</command>
32 <arg choice='plain'>-c</arg>
33 <arg choice='plain'>-C</arg>
34 <arg choice='plain'>-l</arg>
37 <arg choice='plain'>-p</arg>
38 <arg choice='plain'>-n</arg>
40 <arg choice='opt'>-a</arg>
41 <arg choice='opt'>-O <replaceable>directory</replaceable></arg>
42 <arg choice='opt'>-d <replaceable>device</replaceable></arg>
44 <arg choice='plain'>-h</arg>
45 <arg choice='plain'>--header-file <replaceable>filename</replaceable></arg>
46 <arg choice='plain'>--header-fd <replaceable>fd</replaceable></arg>
49 <arg choice='plain'>--decompress</arg>
50 <arg choice='plain'>--no-decompress</arg>
51 <arg choice='plain'>--server-decompress</arg>
52 <arg choice='plain'>--client-decompress</arg>
55 <arg choice='plain'>--decrypt</arg>
56 <arg choice='plain'>--no-decrypt</arg>
57 <arg choice='plain'>--server-decrypt</arg>
58 <arg choice='plain'>--client-decrypt</arg>
60 &configoverride.synopsis;
61 <arg choice='plain'><replaceable>config</replaceable></arg>
62 <arg choice='plain'><replaceable>hostname</replaceable></arg>
64 <arg choice='plain'><replaceable>disk</replaceable></arg>
66 <arg choice='plain'><replaceable>date</replaceable></arg>
68 <arg choice='plain'><replaceable>level</replaceable></arg>
70 <arg choice='plain'><replaceable>hostname</replaceable></arg>
71 <arg choice='opt'>...</arg>
80 <refsect1><title>DESCRIPTION</title>
81 <para><emphasis remap='B'>Amfetchdump</emphasis>
82 pulls one or more matching dumps from tape or from the holding disk,
83 handling the reassembly of multi-tape split dump files as well as any
84 tape autochanger operations. The dump are by default decompressed and decrypted.
87 <para>It will automatically use the Amanda catalog
88 to locate available dumps on tape, in the same way that the <emphasis
89 remap='B'>find</emphasis> feature of
90 <manref name="amadmin" vol="8"/>
91 lists available dumps.</para>
94 <emphasis remap='I'>hostname</emphasis>,
95 <emphasis remap='I'>diskname</emphasis>,
96 <emphasis remap='I'>datestamp</emphasis>,
98 <emphasis remap='I'>level</emphasis> dump specifications are further described in
99 <manref name="amanda-match" vol="7"/>.
100 Note that at minimum a <emphasis remap='I'>hostname</emphasis> must be specified.</para>
102 <para>Unless <option>-p</option>
103 is used, backup images are extracted to files in the current directory named:</para>
105 <para>If a changer error occurs, or the <option>-d</option> option is given,
106 then amfetchdump prompts for each required volume.</para>
109 <para><emphasis remap='I'>hostname.diskname.datestamp.dumplevel</emphasis></para>
113 <refsect1><title>OPTIONS</title>
114 <variablelist remap='TP'>
116 <term><option>-p</option></term>
117 <listitem><para>Pipe exactly one complete dump file to <emphasis
118 remap='I'>stdout</emphasis>, instead of writing the file to disk. This
119 will restore only the first matching dumpfile (where
120 "first" is determined by the dump log search
121 facility).</para></listitem>
124 <term><option>-h</option></term>
125 <listitem><para>Output the amanda header as a 32K block to same output as the image.</para></listitem>
128 <term><option>--header-fd</option> <replaceable>fd</replaceable></term>
129 <listitem><para>Output the amanda header to the numbered file
130 descriptor.</para></listitem>
133 <term><option>--header-file</option> <replaceable>filename</replaceable></term>
134 <listitem><para>Output the amanda header to the filename.</para></listitem>
137 <term><option>-d</option> <replaceable>device_or_changer</replaceable></term>
138 <listitem><para> Restore from this device or changer instead of the default,
139 prompting for each volume.</para></listitem>
142 <term><option>-O</option>
143 <replaceable>directory</replaceable></term>
144 <listitem><para>Output restored files to this directory, instead of to the
145 current working directory.</para></listitem>
148 <term><option>-c</option></term>
149 <listitem><para>Compress output, fastest method
150 available.</para></listitem>
153 <term><option>-C</option></term>
154 <listitem><para>Compress output, smallest file size method
155 available.</para></listitem>
158 <term><option>--decompress</option></term>
159 <listitem><para>Always do the decompression, this is the default.</para></listitem>
162 <term><option>--no-decompress</option></term>
163 <listitem><para>Never do the decompression.</para></listitem>
166 <term><option>--server-decompress</option></term>
167 <listitem><para>Do the decompression only if the compression was done on
168 the server.</para></listitem>
171 <term><option>--client-decompress</option></term>
172 <listitem><para>Do the decompression only if the compression was done on
173 the client.</para></listitem>
176 <term><option>--decrypt</option></term>
177 <listitem><para>Always do the decryption, this is the default.</para></listitem>
180 <term><option>--no-decrypt</option></term>
181 <listitem><para>Never do the decryption.</para></listitem>
184 <term><option>--server-decrypt</option></term>
185 <listitem><para>Do the decryption only if the encryption was done on
186 the server.</para></listitem>
189 <term><option>--client-decrypt</option></term>
190 <listitem><para>Do the decryption only if the encryption was done on
191 the client.</para></listitem>
194 <term><option>-l</option></term>
195 <listitem><para>Leave dumps in the compressed/uncompressed and
196 encrypted/unencrypted state in which they were found on tape.
197 It is a synonym for <option>--no-decompression</option>
198 <option>--no-decryption</option></para></listitem>
201 <term><option>-a</option></term>
202 <listitem><para>Assume that all tapes are already available, via tape changer or
203 otherwise, instead of prompting the operator to ensure that all tapes
204 are loaded.</para></listitem>
208 <term><option>-n</option></term>
209 <listitem><para>Do not reassemble split dump files at all, just restore each
210 piece as an individual file.</para></listitem>
214 <term><option>-o</option> <replaceable>configoption</replaceable></term>
216 <para>See the "<emphasis remap='B'>CONFIGURATION OVERRIDE</emphasis>"
217 section in <manref name="amanda" vol="8"/>.</para>
224 <refsect1><title>EXAMPLES</title>
225 <para>All the examples here assume your configuration is called
226 <replaceable>SetA</replaceable>.</para>
228 <para>Here's a simple case, restoring all known dumps of the host
229 vanya to the current working directory.</para>
231 $ amfetchdump SetA vanya
234 <para>A more likely scenario involves restoring a particular dump from
235 a particular date. We'll pipe this one to &gnutar; as well, to
236 automatically extract the dump.</para>
238 $ amfetchdump -p SetA vanya /home 20051020 | gtar -xvpf -
243 <refsect1><title>CAVEATS</title>
244 <para><command>Amfetchdump</command> is dependent on accessing your server's config,
245 tape changer, and (normally) dump logs. As such, it's not necessarily
246 the most useful tool when those have all been wiped out and you
247 desperately need to pull things from your tape. Pains have been taken
248 to make it as capable as possible, but for seriously minimialist
250 <manref name="amrestore" vol="8"/>
252 <manref name="dd" vol="8"/>
257 <manref name="amanda-match" vol="7"/>,
258 <manref name="amadmin" vol="8"/>,
259 <manref name="amrestore" vol="8"/>,