Imported Upstream version 2.5.1p3
[debian/amanda] / man / amfetchdump.8
1 .\"     Title: amfetchdump
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
4 .\"      Date: 02/07/2007
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMFETCHDUMP" "8" "02/07/2007" "" ""
9 .\" disable hyphenation
10 .nh
11 .\" disable justification (adjust text to left margin only)
12 .ad l
13 .SH "NAME"
14 amfetchdump \- extract backup images from multiple Amanda tapes.
15 .SH "SYNOPSIS"
16 .HP 12
17 \fBamfetchdump\fR [\-pcClawns] [\-d\ \fIdevice\fR] [\-O\ \fIdirectory\fR] [\-i\ \fIlogfile\fR] [\-b\ \fIblocksize\fR] \fIconfig\fR \fIhostname\fR [\fIdisk\fR\ [\ \fIdate\fR\ [\ \fIlevel\fR\ [\ \fIhostname\fR\ [...]\ ]\ ]\ ]] [\-o\ \fIconfigoption\fR]...
18 .SH "DESCRIPTION"
19 .PP
20 \fBAmfetchdump\fR
21 pulls one or more matching dumps from tape or from the holding disk, handling the reassembly of multi\-tape split dump files as well as any tape autochanger operations.
22 .PP
23 It will automatically use the logs created by
24 \fBamdump\fR(8)
25 to locate available dumps on tape, in the same way that the
26 \fBfind\fR
27 feature of
28 \fBamadmin\fR(8)
29 lists available dumps. If these logs are unavailable, it can search tape\-by\-tape to find what it needs, and can generate new logs to serve as an emergency tape inventory.
30 .PP
31 The
32 \fIhostname\fR,
33 \fIdiskname\fR,
34 \fIdatestamp\fR, and
35 \fIlevel\fR
36 dump pattern\-matching works as in
37 \fBamrestore\fR(8), with the added requirement that at minimum a
38 \fIhostname\fR
39 must be specified when not in inventory mode.
40 .PP
41 Unless
42 \fB\-p\fR
43 is used, backup images are extracted to files in the current directory named:
44 .PP
45 \fIhostname.diskname.datestamp.dumplevel\fR
46 .SH "OPTIONS"
47 .PP
48 \fB\-p\fR
49 .RS 4
50 Pipe exactly one complete dump file to
51 \fIstdout\fR, instead of writing the file to disk. This will restore only the first matching dumpfile (where "first" is determined by the dump log search facility).
52 .RE
53 .PP
54 \fB\-d\fR \fIdevice\fR
55 .RS 4
56 Restore from this tape device instead of the default.
57 .RE
58 .PP
59 \fB\-O\fR \fIdirectory\fR
60 .RS 4
61 Output restored files to this directory, instead of to the current working directory.
62 .RE
63 .PP
64 \fB\-c\fR
65 .RS 4
66 Compress output, fastest method available.
67 .RE
68 .PP
69 \fB\-C\fR
70 .RS 4
71 Compress output, smallest file size method available.
72 .RE
73 .PP
74 \fB\-l\fR
75 .RS 4
76 Leave dumps in the compressed/uncompressed state in which they were found on tape. By default,
77 \fBamfetchdump\fR
78 will automatically uncompress when restoring.
79 .RE
80 .PP
81 \fB\-a\fR
82 .RS 4
83 Assume that all tapes are already available, via tape changer or otherwise, instead of prompting the operator to ensure that all tapes are loaded.
84 .RE
85 .PP
86 \fB\-i\fR \fIfilename\fR
87 .RS 4
88 Generate an inventory of all dumps "seen" on the tapes we search, for later use as a log.
89 .RE
90 .PP
91 \fB\-w\fR
92 .RS 4
93 Wait to put split dumps together until all chunks have been restored. Normally,
94 \fBamfetchdump\fR
95 will attempt to read pieces of a split file from tape in order, so that it can assemble them simply by appending each file to the first. This option disables the appending behavior, and instead restores each piece as an individual file and reassembles them only after all have been restored.
96 .sp
97 .it 1 an-trap
98 .nr an-no-space-flag 1
99 .nr an-break-flag 1
100 .br
101 \fBNote\fR
102 This requires at least double the size of your dump in free disk space, in order to build the final assembled dumpfile.
103
104 This behavior is implicitly invoked in circumstances where knowing the location of all dumps on tape in advance is not possible, such as when you are restoring without log files.
105 .RE
106 .PP
107 \fB\-n\fR
108 .RS 4
109 Do not reassemble split dump files at all, just restore each piece as an individual file.
110 .RE
111 .PP
112 \fB\-s\fR
113 .RS 4
114 Do not fast\-forward straight to needed files on tape. This will slow down most restores substantially. Only use this option if your tape drive does not properly support the fast\-forward operation.
115 .RE
116 .PP
117 \fB\-b\fR \fIblocksize\fR
118 .RS 4
119 Force a particular block size when reading from tapes. This value will usually be autodetected, and should not normally need to be set.
120 .RE
121 .PP
122 \fB\-o\fR \fIconfigoption\fR
123 .RS 4
124 See the "\fBCONFIGURATION OVERWRITE\fR" section in
125 \fBamanda\fR(8).
126 .RE
127 .SH "EXAMPLES"
128 .PP
129 All the examples here assume your configuration is called
130 \fISetA\fR.
131 .PP
132 Here's a simple case, restoring all known dumps of the host vanya to the current working directory.
133 .sp
134 .RS 4
135 .nf
136 $ amfetchdump SetA vanya
137 .fi
138 .RE
139 .sp
140 .PP
141 A more likely scenario involves restoring a particular dump from a particular date. We'll pipe this one to
142 \fBGNU\-tar\fR
143 as well, to automatically extract the dump.
144 .sp
145 .RS 4
146 .nf
147 $ amfetchdump \-p SetA vanya /home 20051020 | gtar \-xvpf \-
148 .fi
149 .RE
150 .sp
151 .PP
152 In a situation where all of our dump logs have been wiped out, we could also use amfetchdump to inventory our tapes and recreate an imitation of those logs, which we'll send to
153 \fIstdout\fR
154 for casual perusal.
155
156 .sp
157 .RS 4
158 .nf
159 $ amfetchdump \-i \- SetA
160 .fi
161 .RE
162 .sp
163
164 .PP
165 Note that you can specify a restore while in inventory mode, and
166 \fBamfetchdump\fR
167 will continue searching for more dumps from this host even after successfully restoring a dump, inventorying all the while. If your backup searcher has been trashed, this is a handy way to recover what you have.
168
169 .sp
170 .RS 4
171 .nf
172 $ amfetchdump \-i /var/amanda/log SetA backupserver
173 .fi
174 .RE
175 .sp
176
177 .SH "CAVEATS"
178 .PP
179 \fBAmfetchdump\fR
180 is dependent on accessing your server's config, tape changer, and (normally) dump logs. As such, it's not necessarily the most useful tool when those have all been wiped out and you desperately need to pull things from your tape. Pains have been taken to make it as capable as possible, but for seriously minimialist restores, look to
181 \fBamrestore\fR(8)
182 or
183 \fBdd\fR(8)
184 instead.
185 .SH "AUTHOR"
186 .PP
187 John Stange,
188 <building@nap.edu>, National Academies Press
189 .PP
190 Ian Turner,
191 <ian@zmanda.com>: XML\-conversion
192 .SH "SEE ALSO"
193 .PP
194 \fBamanda\fR(8),
195 \fBamadmin\fR(8),
196 \fBamrestore\fR(8),
197 \fBtar\fR(1)
198 \fBrestore\fR(8)