b3110341b22774a021b20cce5029482a30703be2
[debian/amanda] / man / amfetchdump.8
1 '\" t
2 .\"     Title: amfetchdump
3 .\"    Author: John Stange <building@nap.edu>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
5 .\"      Date: 11/05/2009
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 2.6.1p2
8 .\"  Language: English
9 .\"
10 .TH "AMFETCHDUMP" "8" "11/05/2009" "Amanda 2\&.6\&.1p2" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
15 .nh
16 .\" disable justification (adjust text to left margin only)
17 .ad l
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
21 .SH "NAME"
22 amfetchdump \- extract backup images from multiple \fIAmanda\fR tapes\&.
23 .SH "SYNOPSIS"
24 .HP \w'\fBamfetchdump\fR\ 'u
25 \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]...
26 .SH "DESCRIPTION"
27 .PP
28 \fBAmfetchdump\fR
29 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\&.
30 .PP
31 It will automatically use the logs created by
32 \fBamdump\fR(8)
33 to locate available dumps on tape, in the same way that the
34 \fBfind\fR
35 feature of
36 \fBamadmin\fR(8)
37 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\&.
38 .PP
39 The
40 \fIhostname\fR,
41 \fIdiskname\fR,
42 \fIdatestamp\fR, and
43 \fIlevel\fR
44 dump pattern\-matching works as in
45 \fBamrestore\fR(8), with the added requirement that at minimum a
46 \fIhostname\fR
47 must be specified when not in inventory mode\&.
48 .PP
49 Unless
50 \fB\-p\fR
51 is used, backup images are extracted to files in the current directory named:
52 .PP
53 \fIhostname\&.diskname\&.datestamp\&.dumplevel\fR
54 .SH "OPTIONS"
55 .PP
56 \fB\-p\fR
57 .RS 4
58 Pipe exactly one complete dump file to
59 \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)\&.
60 .RE
61 .PP
62 \fB\-d\fR \fIdevice\fR
63 .RS 4
64 Restore from this tape device instead of the default\&.
65 .RE
66 .PP
67 \fB\-O\fR \fIdirectory\fR
68 .RS 4
69 Output restored files to this directory, instead of to the current working directory\&.
70 .RE
71 .PP
72 \fB\-c\fR
73 .RS 4
74 Compress output, fastest method available\&.
75 .RE
76 .PP
77 \fB\-C\fR
78 .RS 4
79 Compress output, smallest file size method available\&.
80 .RE
81 .PP
82 \fB\-l\fR
83 .RS 4
84 Leave dumps in the compressed/uncompressed state in which they were found on tape\&. By default,
85 \fBamfetchdump\fR
86 will automatically uncompress when restoring\&.
87 .RE
88 .PP
89 \fB\-a\fR
90 .RS 4
91 Assume that all tapes are already available, via tape changer or otherwise, instead of prompting the operator to ensure that all tapes are loaded\&.
92 .RE
93 .PP
94 \fB\-w\fR
95 .RS 4
96 Wait to put split dumps together until all chunks have been restored\&. Normally,
97 \fBamfetchdump\fR
98 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\&.
99 .if n \{\
100 .sp
101 .\}
102 .RS 4
103 .it 1 an-trap
104 .nr an-no-space-flag 1
105 .nr an-break-flag 1
106 .br
107 .ps +1
108 \fBNote\fR
109 .ps -1
110 .br
111 This requires at least double the size of your dump in free disk space, in order to build the final assembled dumpfile\&.
112 .sp .5v
113 .RE
114 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\&.
115 .RE
116 .PP
117 \fB\-n\fR
118 .RS 4
119 Do not reassemble split dump files at all, just restore each piece as an individual file\&.
120 .RE
121 .PP
122 \fB\-s\fR
123 .RS 4
124 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\&.
125 .RE
126 .PP
127 \fB\-b\fR \fIblocksize\fR
128 .RS 4
129 Force a particular block size when reading from tapes\&. This value will usually be autodetected, and should not normally need to be set\&.
130 .RE
131 .PP
132 \fB\-o\fR \fIconfigoption\fR
133 .RS 4
134 See the "\fBCONFIGURATION OVERRIDE\fR" section in
135 \fBamanda\fR(8)\&.
136 .RE
137 .SH "EXAMPLES"
138 .PP
139 All the examples here assume your configuration is called
140 \fISetA\fR\&.
141 .PP
142 Here\'s a simple case, restoring all known dumps of the host vanya to the current working directory\&.
143 .nf
144 $ amfetchdump SetA vanya
145 .fi
146 .PP
147 A more likely scenario involves restoring a particular dump from a particular date\&. We\'ll pipe this one to
148 \fBGNU\-tar\fR
149 as well, to automatically extract the dump\&.
150 .nf
151 $ amfetchdump \-p SetA vanya /home 20051020 | gtar \-xvpf \-
152 .fi
153 .SH "CAVEATS"
154 .PP
155 \fBAmfetchdump\fR
156 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
157 \fBamrestore\fR(8)
158 or
159 \fBdd\fR(8)
160 instead\&.
161 .SH "SEE ALSO"
162 .PP
163 \fBamanda\fR(8),
164 \fBamadmin\fR(8),
165 \fBamrestore\fR(8),
166 \fBtar\fR(1),
167 \fBrestore\fR(8),
168 : http://wiki.zmanda.com
169 .SH "AUTHORS"
170 .PP
171 \fBJohn Stange\fR <\&building@nap\&.edu\&>
172 .RS 4
173 National Academies Press
174 .RE
175 .PP
176 \fBIan Turner\fR <\&ian@zmanda\&.com\&>
177 .RS 4
178 Zmanda, Inc\&. (http://www\&.zmanda\&.com)
179 .RE