1AMFETCHDUMP(8) System Administration Commands AMFETCHDUMP(8)
2
3
4
6 amfetchdump - extract backup images from multiple Amanda tapes.
7
9 amfetchdump [-c | -C | -l] [-p | -n] [-a] [-O directory] [-d device]
10 [-h | --header-file filename | --header-fd fd]
11 [--release-tapes | --reserve-tapes] [--decompress |
12 --no-decompress | --server-decompress |
13 --client-decompress]
14 [{--extract | --extract-client=HOSTNAME} --target target [--data-path amanda|directtcp] [--run-client-scripts] [--prev-level level] [--next-level level] [--application-property NAME=VALUE]* [--include-file file]* [--include-list filename]* [--include-list-glob filename]* [--exclude-file file]* [--exclude-list filename]* [--exclude-list-glob filename]*]
15 [--init] [--restore] [--decrypt | --no-decrypt |
16 --server-decrypt | --client-decrypt] [--exact_match]
17 [-o configoption...] config hostname
18 [disk [ date [ level [ hostname [...] ] ] ]]
19
21 Amfetchdump pulls one or more matching dumps from tape or from the
22 holding disk, handling the reassembly of multi-tape split dump files as
23 well as any tape autochanger operations. The dump are by default
24 decompressed and decrypted.
25
26 It will automatically use the Amanda catalog to locate available dumps
27 on tape, in the same way that the find feature of amadmin(8) lists
28 available dumps.
29
30 The hostname, diskname, datestamp, and level dump specifications are
31 further described in amanda-match(7). Note that at minimum a hostname
32 must be specified.
33
34 Unless -p is used, backup images are extracted to files in the current
35 directory named:
36
37 hostname.diskname.datestamp.dumplevel
38
39 If a changer error occurs, or the -d option is given, then amfetchdump
40 prompts for each required volume.
41
43 -p
44 Pipe exactly one complete dump file to stdout, instead of writing
45 the file to disk. This will restore only the first matching
46 dumpfile (where "first" is determined by the dump log search
47 facility).
48
49 -h
50 Output the amanda header as a 32K block to same output as the
51 image.
52
53 --header-fd fd
54 Output the amanda header to the numbered file descriptor.
55
56 --header-file filename
57 Output the amanda header to the filename.
58
59 -d device_or_changer
60 Restore from this device or changer instead of the default,
61 prompting for each volume.
62
63 -O directory
64 Output restored files to this directory, instead of to the current
65 working directory.
66
67 -c
68 Compress output, fastest method available.
69
70 -C
71 Compress output, smallest file size method available.
72
73 --decompress
74 Always do the decompression, this is the default.
75
76 --no-decompress
77 Never do the decompression.
78
79 --server-decompress
80 Do the decompression only if the compression was done on the
81 server.
82
83 --client-decompress
84 Do the decompression only if the compression was done on the
85 client.
86
87 --decrypt
88 Always do the decryption, this is the default.
89
90 --no-decrypt
91 Never do the decryption.
92
93 --server-decrypt
94 Do the decryption only if the encryption was done on the server.
95
96 --client-decrypt
97 Do the decryption only if the encryption was done on the client.
98
99 --init
100 Prepare for a restore, some device require it for faster restore.
101
102 --no-restore
103 Do not start the restore, useful with --init.
104
105 --exact-match
106 The host and disk are parsed as exact values
107
108 --extract
109 Extract the backup on the server in the target path.
110
111 --directory directory
112 Deprecated, use --target
113
114 --target target
115 Where to extract the backup with the --extract option.
116
117 Warning: All files in that path can be removed.
118
119 --data-path amanda|directtcp
120 The data path to use with --extract, the default is to use the
121 fatest data path.
122
123 --run-client-scripts
124 Run the client script if it is set.
125
126 --prev-level level
127 The previous level that was restored for this dle. If not set, run
128 the pre-recover script. If set, run the inter-level-recover script.
129
130 --next-level level
131 The next level we will restore for this dle. If not set, run the
132 post-recover script.
133
134 --application-property NAME=VALUE
135 Application property to send to the application with --extract.
136
137 --include-file file
138 The name of a file to restore.
139
140 --include-list filename
141 The name of a file containing file to restore.
142
143 --include-list-glob filename
144 The name of a file containing file to restore using
145 --include-list-glob of the application.
146
147 --exclude-file file
148 The name of a file to exclude from the restore list.
149
150 --exclude-list filename
151 The name of a file containing file to exclude from the restore
152 list.
153
154 --exclude-list-glob filename
155 The name of a file containing file to exclude from the restore list
156 using --exclude-list-glob of the application.
157
158 --release-tapes
159 Release the tapes already reserved for the restore.
160
161 --reserve-tapes
162 Reserve the tapes needed for the restore.
163
164 -l
165 Leave dumps in the compressed/uncompressed and
166 encrypted/unencrypted state in which they were found on tape. It is
167 a synonym for --no-decompression and --no-decryption
168
169 -a
170 Assume that all tapes are already available, via tape changer or
171 otherwise, instead of prompting the operator to ensure that all
172 tapes are loaded.
173
174 -n
175 Do not reassemble split dump files at all, just restore each piece
176 as an individual file.
177
178 -o configoption
179 See the "CONFIGURATION OVERRIDE" section in amanda(8).
180
182 All the examples here assume your configuration is called SetA.
183
184 Here's a simple case, restoring all known dumps of the host vanya to
185 the current working directory.
186 $ amfetchdump SetA vanya
187
188 A more likely scenario involves restoring a particular dump from a
189 particular date. We'll pipe this one to GNU-tar as well, to
190 automatically extract the dump.
191 $ amfetchdump -p SetA vanya /home 20051020 | gtar -xvpf -
192
194 Amfetchdump is dependent on accessing your server's config, tape
195 changer, and (normally) dump logs. As such, it's not necessarily the
196 most useful tool when those have all been wiped out and you desperately
197 need to pull things from your tape. Pains have been taken to make it as
198 capable as possible, but for seriously minimialist restores, look to
199 amrestore(8) or dd(8) instead.
200
202 amanda(8), amanda-match(7), amadmin(8), amrestore(8)
203
204 The Amanda Wiki: : http://wiki.zmanda.com/
205
207 John Stange <building@nap.edu>
208 National Academies Press
209
210 Ian Turner <ian@zmanda.com>
211 Zmanda, Inc. (http://www.zmanda.com)
212
213
214
215Amanda 3.5.1 12/01/2017 AMFETCHDUMP(8)