2ae33aab42ca632f8f146f39a14e558149266b07
[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: 06/01/2010
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 3.1.0
8 .\"  Language: English
9 .\"
10 .TH "AMFETCHDUMP" "8" "06/01/2010" "Amanda 3\&.1\&.0" "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 Amanda tapes\&.
23 .SH "SYNOPSIS"
24 .HP \w'\fBamfetchdump\fR\ 'u
25 \fBamfetchdump\fR [\-phcClawns] [\-d\ \fIdevice\fR] [\-O\ \fIdirectory\fR] [\-b\ \fIblocksize\fR] [\-\-header\-fd\ \fIfd\fR] [\-\-header\-file\ \fIfilename\fR] [\-o\ \fIconfigoption\fR]... \fIconfig\fR \fIhostname\fR [\fIdisk\fR\ [\ \fIdate\fR\ [\ \fIlevel\fR\ [\ \fIhostname\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 If a changer error occurs, or the
54 \fB\-d\fR
55 option is given, then amfetchdump prompts for each required volume\&.
56 .PP
57 \fIhostname\&.diskname\&.datestamp\&.dumplevel\fR
58 .SH "OPTIONS"
59 .PP
60 \fB\-p\fR
61 .RS 4
62 Pipe exactly one complete dump file to
63 \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)\&.
64 .RE
65 .PP
66 \fB\-h\fR
67 .RS 4
68 Output the amanda header as a 32K block to same output as the image\&.
69 .RE
70 .PP
71 \fB\-\-header\-fd\fR \fIfd\fR
72 .RS 4
73 Output the amanda header to the numbered file descriptor\&.
74 .RE
75 .PP
76 \fB\-\-header\-file\fR \fIfilename\fR
77 .RS 4
78 Output the amanda header to the filename\&.
79 .RE
80 .PP
81 \fB\-d\fR \fIdevice_or_changer\fR
82 .RS 4
83 Restore from this device or changer instead of the default, prompting for each volume\&.
84 .RE
85 .PP
86 \fB\-O\fR \fIdirectory\fR
87 .RS 4
88 Output restored files to this directory, instead of to the current working directory\&.
89 .RE
90 .PP
91 \fB\-c\fR
92 .RS 4
93 Compress output, fastest method available\&.
94 .RE
95 .PP
96 \fB\-C\fR
97 .RS 4
98 Compress output, smallest file size method available\&.
99 .RE
100 .PP
101 \fB\-l\fR
102 .RS 4
103 Leave dumps in the compressed/uncompressed state in which they were found on tape\&. By default,
104 \fBamfetchdump\fR
105 will automatically uncompress when restoring\&.
106 .RE
107 .PP
108 \fB\-a\fR
109 .RS 4
110 Assume that all tapes are already available, via tape changer or otherwise, instead of prompting the operator to ensure that all tapes are loaded\&.
111 .RE
112 .PP
113 \fB\-n\fR
114 .RS 4
115 Do not reassemble split dump files at all, just restore each piece as an individual file\&.
116 .RE
117 .PP
118 \fB\-o\fR \fIconfigoption\fR
119 .RS 4
120 See the "\fBCONFIGURATION OVERRIDE\fR" section in
121 \fBamanda\fR(8)\&.
122 .RE
123 .SH "EXAMPLES"
124 .PP
125 All the examples here assume your configuration is called
126 \fISetA\fR\&.
127 .PP
128 Here\'s a simple case, restoring all known dumps of the host vanya to the current working directory\&.
129 .nf
130 $ amfetchdump SetA vanya
131 .fi
132 .PP
133 A more likely scenario involves restoring a particular dump from a particular date\&. We\'ll pipe this one to
134 \fBGNU\-tar\fR
135 as well, to automatically extract the dump\&.
136 .nf
137 $ amfetchdump \-p SetA vanya /home 20051020 | gtar \-xvpf \-
138 .fi
139 .SH "CAVEATS"
140 .PP
141 \fBAmfetchdump\fR
142 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
143 \fBamrestore\fR(8)
144 or
145 \fBdd\fR(8)
146 instead\&.
147 .SH "SEE ALSO"
148 .PP
149 \fBamanda\fR(8),
150 \fBamadmin\fR(8),
151 \fBamrestore\fR(8),
152 \fBtar\fR(1),
153 \fBrestore\fR(8)
154 .PP
155 The Amanda Wiki:
156 : http://wiki.zmanda.com/
157 .SH "AUTHORS"
158 .PP
159 \fBJohn Stange\fR <\&building@nap\&.edu\&>
160 .RS 4
161 National Academies Press
162 .RE
163 .PP
164 \fBIan Turner\fR <\&ian@zmanda\&.com\&>
165 .RS 4
166 Zmanda, Inc\&. (http://www\&.zmanda\&.com)
167 .RE