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