8aa261640d483e7399aca90ab5c3a0fdd4b5f4f3
[debian/amanda] / man / amfetchdump.8
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "AMFETCHDUMP" 8 "" "" ""
21 .SH NAME
22 amfetchdump \- extract backup images from multiple Amanda tapes.
23 .SH "SYNOPSIS"
24 .ad l
25 .hy 0
26 .HP 12
27 \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\ [\&.\&.\&.]]]]]
28 .ad
29 .hy
30
31 .SH "DESCRIPTION"
32
33 .PP
34 \fBAmfetchdump\fR 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\&.
35
36 .PP
37 It will automatically use the logs created by \fBamdump\fR(8) to locate available dumps on tape, in the same way that the \fBfind\fR feature of \fBamadmin\fR(8) 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
39 .PP
40 The \fBhostname\fR, \fBdiskname\fR, \fBdatestamp\fR, and \fBlevel\fR dump pattern\-matching works as in \fBamrestore\fR(8), with the added requirement that at minimum a \fBhostname\fR must be specified when not in inventory mode\&.
41
42 .PP
43 Unless \fB\-p\fR is used, backup images are extracted to files in the current directory named:
44
45 .PP
46 \fBhostname\&.diskname\&.datestamp\&.dumplevel\fR
47
48 .SH "OPTIONS"
49
50 .TP
51 \fB\-p\fR
52 Pipe exactly one complete dump file to \fBstdout\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)\&.
53
54 .TP
55 \fB\-d\fR \fIdevice\fR
56 Restore from this tape device instead of the default\&.
57
58 .TP
59 \fB\-o\fR \fIdirectory\fR
60 Output restored files to this directory, instead of to the current working directory\&.
61
62 .TP
63 \fB\-c\fR
64 Compress output, fastest method available\&.
65
66 .TP
67 \fB\-C\fR
68 Compress output, smallest file size method available\&.
69
70 .TP
71 \fB\-l\fR
72 Leave dumps in the compressed/uncompressed state in which they were found on tape\&. By default, \fBamfetchdump\fR will automatically uncompress when restoring\&.
73
74 .TP
75 \fB\-a\fR
76 Assume that all tapes are already available, via tape changer or otherwise, instead of prompting the operator to ensure that all tapes are loaded\&.
77
78 .TP
79 \fB\-i\fR \fIfilename\fR
80 Generate an inventory of all dumps "seen" on the tapes we search, for later use as a log\&.
81
82 .TP
83 \fB\-w\fR
84 Wait to put split dumps together until all chunks have been restored\&. Normally, \fBamfetchdump\fR 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\&.
85
86
87 .RS
88 .Sh "Note"
89 This requires at least double the size of your dump in free
90 disk space, in order to build the final assembled dumpfile\&.
91 .RE
92 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\&.
93
94 .TP
95 \fB\-n\fR
96 Do not reassemble split dump files at all, just restore each piece as an individual file\&.
97
98 .TP
99 \fB\-s\fR
100 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\&.
101
102 .TP
103 \fB\-b\fR \fIblocksize\fR
104 Force a particular block size when reading from tapes\&. This value will usually be autodetected, and should not normally need to be set\&.
105
106 .SH "EXAMPLES"
107
108 .PP
109 All the examples here assume your configuration is called \fISetA\fR\&.
110
111 .PP
112 Here's a simple case, restoring all known dumps of the host vanya to the current working directory\&.
113
114 .nf
115
116 $ amfetchdump SetA vanya
117
118 .fi
119
120 .PP
121 A more likely scenario involves restoring a particular dump from a particular date\&. We'll pipe this one to \fBGNU\-tar\fR as well, to automatically extract the dump\&.
122
123 .nf
124
125 $ amfetchdump \-p SetA vanya /home 20051020 | gtar \-xvpf \-
126
127 .fi
128
129 .PP
130 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 \fBstdout\fR for casual perusal\&.   
131
132 .nf
133
134 $ amfetchdump \-i \- SetA
135
136 .fi
137   
138
139 .PP
140 Note that you can specify a restore while in inventory mode, and \fBamfetchdump\fR 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\&.   
141
142 .nf
143
144 $ amfetchdump \-i /var/amanda/log SetA backupserver
145
146 .fi
147   
148
149 .SH "CAVEATS"
150 \fBAmfetchdump\fR is dependent on accessing your server's config,
151 tape changer, and (normally) dump logs\&. As such, it's not necessarily
152 the most useful tool when those have all been wiped out and you
153 desperately need to pull things from your tape\&. Pains have been taken
154 to make it as capable as possible, but for seriously minimialist
155 restores, look to
156 \fBamrestore\fR(8)
157 or
158 \fBdd\fR(8)
159 instead\&.
160
161 .SH "AUTHOR"
162
163 .PP
164 John Stange, <building@nap\&.edu>, National Academies Press
165
166 .PP
167 Ian Turner, <ian@zmanda\&.com>: XML\-conversion
168
169 .SH "SEE ALSO"
170
171 .PP
172 \fBamanda\fR(8), \fBamadmin\fR(8), \fBamrestore\fR(8), \fBtar\fR(1)  \fBrestore\fR(8)
173