1AMFETCHDUMP(8) System Administration Commands AMFETCHDUMP(8)
2
3
4
6 amfetchdump - extract backup images from multiple Amanda tapes.
7
9 amfetchdump [-phcClawns] [-d device] [-O directory] [-b blocksize]
10 [--header-fd fd] [--header-file filename]
11 [-o configoption]... config hostname
12 [disk [ date [ level [ hostname [...] ] ] ]]
13
15 Amfetchdump pulls one or more matching dumps from tape or from the
16 holding disk, handling the reassembly of multi-tape split dump files as
17 well as any tape autochanger operations.
18
19 It will automatically use the logs created by amdump(8) to locate
20 available dumps on tape, in the same way that the find feature of
21 amadmin(8) lists available dumps. If these logs are unavailable, it can
22 search tape-by-tape to find what it needs, and can generate new logs to
23 serve as an emergency tape inventory.
24
25 The hostname, diskname, datestamp, and level dump pattern-matching
26 works as in amrestore(8), with the added requirement that at minimum a
27 hostname must be specified when not in inventory mode.
28
29 Unless -p is used, backup images are extracted to files in the current
30 directory named:
31
32 If a changer error occurs, or the -d option is given, then amfetchdump
33 prompts for each required volume.
34
35 hostname.diskname.datestamp.dumplevel
36
38 -p
39 Pipe exactly one complete dump file to stdout, instead of writing
40 the file to disk. This will restore only the first matching
41 dumpfile (where "first" is determined by the dump log search
42 facility).
43
44 -h
45 Output the amanda header as a 32K block to same output as the
46 image.
47
48 --header-fd fd
49 Output the amanda header to the numbered file descriptor.
50
51 --header-file filename
52 Output the amanda header to the filename.
53
54 -d device_or_changer
55 Restore from this device or changer instead of the default,
56 prompting for each volume.
57
58 -O directory
59 Output restored files to this directory, instead of to the current
60 working directory.
61
62 -c
63 Compress output, fastest method available.
64
65 -C
66 Compress output, smallest file size method available.
67
68 -l
69 Leave dumps in the compressed/uncompressed state in which they were
70 found on tape. By default, amfetchdump will automatically
71 uncompress when restoring.
72
73 -a
74 Assume that all tapes are already available, via tape changer or
75 otherwise, instead of prompting the operator to ensure that all
76 tapes are loaded.
77
78 -n
79 Do not reassemble split dump files at all, just restore each piece
80 as an individual file.
81
82 -o configoption
83 See the "CONFIGURATION OVERRIDE" section in amanda(8).
84
86 All the examples here assume your configuration is called SetA.
87
88 Here´s a simple case, restoring all known dumps of the host vanya to
89 the current working directory.
90 $ amfetchdump SetA vanya
91
92 A more likely scenario involves restoring a particular dump from a
93 particular date. We´ll pipe this one to GNU-tar as well, to
94 automatically extract the dump.
95 $ amfetchdump -p SetA vanya /home 20051020 | gtar -xvpf -
96
98 Amfetchdump is dependent on accessing your server´s config, tape
99 changer, and (normally) dump logs. As such, it´s not necessarily the
100 most useful tool when those have all been wiped out and you desperately
101 need to pull things from your tape. Pains have been taken to make it as
102 capable as possible, but for seriously minimialist restores, look to
103 amrestore(8) or dd(8) instead.
104
106 amanda(8), amadmin(8), amrestore(8), tar(1), restore(8)
107
108 The Amanda Wiki: : http://wiki.zmanda.com/
109
111 John Stange <building@nap.edu>
112 National Academies Press
113
114 Ian Turner <ian@zmanda.com>
115 Zmanda, Inc. (http://www.zmanda.com)
116
117
118
119Amanda 3.1.3 10/04/2010 AMFETCHDUMP(8)