63e155a16d8b4eaad4a3d7e47458a0b5b6a266fb
[debian/amanda] / man / amfetchdump.8
1 '\" t
2 .\"     Title: amfetchdump
3 .\"    Author: John Stange <building@nap.edu>
4 .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5 .\"      Date: 02/21/2012
6 .\"    Manual: System Administration Commands
7 .\"    Source: Amanda 3.3.1
8 .\"  Language: English
9 .\"
10 .TH "AMFETCHDUMP" "8" "02/21/2012" "Amanda 3\&.3\&.1" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18 .ie \n(.g .ds Aq \(aq
19 .el       .ds Aq '
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
24 .nh
25 .\" disable justification (adjust text to left margin only)
26 .ad l
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
30 .SH "NAME"
31 amfetchdump \- extract backup images from multiple Amanda tapes\&.
32 .SH "SYNOPSIS"
33 .HP \w'\fBamfetchdump\fR\ 'u
34 \fBamfetchdump\fR [\-c|\-C|\-L] [\-p|\-n] [\-a] [\-O\ \fIdirectory\fR] [\-d\ \fIdevice\fR] [\-h] [\-\-header\-file\ \fIfilename\fR] [\-\-header\-fd\ \fIfd\fR] [\fB\-o\fR\ \fIconfigoption\fR...] \fIconfig\fR \fIhostname\fR [\fIdisk\fR\ [\ \fIdate\fR\ [\ \fIlevel\fR\ [\ \fIhostname\fR\ [\&.\&.\&.]\ ]\ ]\ ]]
35 .SH "DESCRIPTION"
36 .PP
37 \fBAmfetchdump\fR
38 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\&.
39 .PP
40 It will automatically use the Amanda catalog to locate available dumps on tape, in the same way that the
41 \fBfind\fR
42 feature of
43 \fBamadmin\fR(8)
44 lists available dumps\&.
45 .PP
46 The
47 \fIhostname\fR,
48 \fIdiskname\fR,
49 \fIdatestamp\fR, and
50 \fIlevel\fR
51 dump specifications are further described in
52 \fBamanda-match\fR(7)\&. Note that at minimum a
53 \fIhostname\fR
54 must be specified\&.
55 .PP
56 Unless
57 \fB\-p\fR
58 is used, backup images are extracted to files in the current directory named:
59 .PP
60 If a changer error occurs, or the
61 \fB\-d\fR
62 option is given, then amfetchdump prompts for each required volume\&.
63 .PP
64 \fIhostname\&.diskname\&.datestamp\&.dumplevel\fR
65 .SH "OPTIONS"
66 .PP
67 \fB\-p\fR
68 .RS 4
69 Pipe exactly one complete dump file to
70 \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)\&.
71 .RE
72 .PP
73 \fB\-h\fR
74 .RS 4
75 Output the amanda header as a 32K block to same output as the image\&.
76 .RE
77 .PP
78 \fB\-\-header\-fd\fR \fIfd\fR
79 .RS 4
80 Output the amanda header to the numbered file descriptor\&.
81 .RE
82 .PP
83 \fB\-\-header\-file\fR \fIfilename\fR
84 .RS 4
85 Output the amanda header to the filename\&.
86 .RE
87 .PP
88 \fB\-d\fR \fIdevice_or_changer\fR
89 .RS 4
90 Restore from this device or changer instead of the default, prompting for each volume\&.
91 .RE
92 .PP
93 \fB\-O\fR \fIdirectory\fR
94 .RS 4
95 Output restored files to this directory, instead of to the current working directory\&.
96 .RE
97 .PP
98 \fB\-c\fR
99 .RS 4
100 Compress output, fastest method available\&.
101 .RE
102 .PP
103 \fB\-C\fR
104 .RS 4
105 Compress output, smallest file size method available\&.
106 .RE
107 .PP
108 \fB\-l\fR
109 .RS 4
110 Leave dumps in the compressed/uncompressed state in which they were found on tape\&. By default,
111 \fBamfetchdump\fR
112 will automatically uncompress when restoring\&.
113 .RE
114 .PP
115 \fB\-a\fR
116 .RS 4
117 Assume that all tapes are already available, via tape changer or otherwise, instead of prompting the operator to ensure that all tapes are loaded\&.
118 .RE
119 .PP
120 \fB\-n\fR
121 .RS 4
122 Do not reassemble split dump files at all, just restore each piece as an individual file\&.
123 .RE
124 .PP
125 \fB\-o\fR \fIconfigoption\fR
126 .RS 4
127 See the "\fBCONFIGURATION OVERRIDE\fR" section in
128 \fBamanda\fR(8)\&.
129 .RE
130 .SH "EXAMPLES"
131 .PP
132 All the examples here assume your configuration is called
133 \fISetA\fR\&.
134 .PP
135 Here\*(Aqs a simple case, restoring all known dumps of the host vanya to the current working directory\&.
136 .nf
137 $ amfetchdump SetA vanya
138 .fi
139 .PP
140 A more likely scenario involves restoring a particular dump from a particular date\&. We\*(Aqll pipe this one to
141 \fBGNU\-tar\fR
142 as well, to automatically extract the dump\&.
143 .nf
144 $ amfetchdump \-p SetA vanya /home 20051020 | gtar \-xvpf \-
145 .fi
146 .SH "CAVEATS"
147 .PP
148 \fBAmfetchdump\fR
149 is dependent on accessing your server\*(Aqs config, tape changer, and (normally) dump logs\&. As such, it\*(Aqs 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
150 \fBamrestore\fR(8)
151 or
152 \fBdd\fR(8)
153 instead\&.
154 .SH "SEE ALSO"
155 .PP
156 \fBamanda\fR(8),
157 \fBamanda-match\fR(7),
158 \fBamadmin\fR(8),
159 \fBamrestore\fR(8)
160 .PP
161 The Amanda Wiki:
162 : http://wiki.zmanda.com/
163 .SH "AUTHORS"
164 .PP
165 \fBJohn Stange\fR <\&building@nap\&.edu\&>
166 .RS 4
167 National Academies Press
168 .RE
169 .PP
170 \fBIan Turner\fR <\&ian@zmanda\&.com\&>
171 .RS 4
172 Zmanda, Inc\&. (http://www\&.zmanda\&.com)
173 .RE