Imported Upstream version 2.6.0p1
[debian/amanda] / man / amfetchdump.8
1 .\"     Title: amfetchdump
2 .\"    Author: 
3 .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4 .\"      Date: 05/14/2008
5 .\"    Manual: 
6 .\"    Source: 
7 .\"
8 .TH "AMFETCHDUMP" "8" "05/14/2008" "" ""
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] [\-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\-w\fR
87 .RS 4
88 Wait to put split dumps together until all chunks have been restored\. Normally,
89 \fBamfetchdump\fR
90 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\.
91 .sp
92 .it 1 an-trap
93 .nr an-no-space-flag 1
94 .nr an-break-flag 1
95 .br
96 Note
97 This requires at least double the size of your dump in free disk space, in order to build the final assembled dumpfile\.
98
99 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\.
100 .RE
101 .PP
102 \fB\-n\fR
103 .RS 4
104 Do not reassemble split dump files at all, just restore each piece as an individual file\.
105 .RE
106 .PP
107 \fB\-s\fR
108 .RS 4
109 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\.
110 .RE
111 .PP
112 \fB\-b\fR \fIblocksize\fR
113 .RS 4
114 Force a particular block size when reading from tapes\. This value will usually be autodetected, and should not normally need to be set\.
115 .RE
116 .PP
117 \fB\-o\fR \fIconfigoption\fR
118 .RS 4
119 See the "\fBCONFIGURATION OVERRIDE\fR" section in
120 \fBamanda\fR(8)\.
121 .RE
122 .SH "EXAMPLES"
123 .PP
124 All the examples here assume your configuration is called
125 \fISetA\fR\.
126 .PP
127 Here\'s a simple case, restoring all known dumps of the host vanya to the current working directory\.
128 .sp
129 .RS 4
130 .nf
131 $ amfetchdump SetA vanya
132 .fi
133 .RE
134 .PP
135 A more likely scenario involves restoring a particular dump from a particular date\. We\'ll pipe this one to
136 \fBGNU\-tar\fR
137 as well, to automatically extract the dump\.
138 .sp
139 .RS 4
140 .nf
141 $ amfetchdump \-p SetA vanya /home 20051020 | gtar \-xvpf \-
142 .fi
143 .RE
144 .sp
145 .SH "CAVEATS"
146 .PP
147 \fBAmfetchdump\fR
148 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
149 \fBamrestore\fR(8)
150 or
151 \fBdd\fR(8)
152 instead\.
153 .SH "AUTHOR"
154 .PP
155 John Stange,
156 <building@nap\.edu>, National Academies Press
157 .PP
158 Ian Turner,
159 <ian@zmanda\.com>: XML\-conversion
160 .SH "SEE ALSO"
161 .PP
162 \fBamanda\fR(8),
163 \fBamadmin\fR(8),
164 \fBamrestore\fR(8),
165 \fBtar\fR(1),
166 \fBrestore\fR(8),
167 \fI\%http://wiki.zmanda.com\fR