1AMRESTORE(8) System Administration Commands AMRESTORE(8)
2
3
4
6 amrestore - low-level data-extraction from Amanda volumes
7
9 amrestore [--config config] [-r | -c | -C] [-b blocksize] [-f filenum]
10 [-l label] [-p] [-h] [--exact-match] [-o configoption...]
11 [{changerspec} | {[--holding] holdingfile}]
12 [hostname [ diskname [ datestamp [ hostname [ diskname [ datestamp ... ] ] ] ] ]]
13
14 Note that this is the only Amanda command which does not take a
15 configuration name as its first argument.
16
18 Amrestore is a very low-level tool for extracting data from Amanda
19 volumes. It does not consult any catalog information or other metadata,
20 basing its operations only on the headers found on the volume. This
21 makes it an appropriate tool for bare-metal restores of an Amanda
22 server, or other situations where the catalog is not available.
23
24 See amfetchdump(8) and amrecover(8) for higher-level recoveries.
25
26 The tool does not reassemble split dumps, but can uncompress compressed
27 dumps. Note that decompression may fail for split parts after the
28 first. If this occurs, extract the parts without decompressing,
29 concatenate them, and decompress the result.
30
31 Data is restored from the current volume in changerspec, or from the
32 holding file holdingfile. In most cases, changerspec will name a
33 particular device, e.g., tape:/dev/nst0 or s3:mybucket/tape-1.
34
35 Only dumps matching the dump specification beginning with hostname are
36 extracted. If no specification is given, every file on the volume (or
37 the entire holdingfile) is restored. See the "DUMP SPECIFICATIONS"
38 section of amanda-match(7) for more information.
39
40 Unless -p is used, candidate backup images are extracted to files in
41 the current directory named: hostname.diskname.datestamp.dumplevel
42
44 -b blocksize
45 Use the given blocksize to read the volume. The default is defined
46 by the device.
47
48 -f filenum
49 Seek to file filenum before beginning the restore operation.
50
51 -l label
52 Check that the volume has label label.
53
54 -p
55 Pipe the first matching file to standard output. This is typically
56 used in a shell pipeline to send the data to a process like tar for
57 extraction.
58
59 -c, -C
60 If the file is not already compressed, compress it using the
61 fastest (-c) or best (-C) compression algorithm. Note that
62 amrestore will not re-compress an already-compressed file. Without
63 either of these options, amrestore will automatically uncompress
64 any compressed files. This option is useful when the destination
65 disk is small.
66
67 -h
68 Include 32k headers on all output files, similar to a holding file.
69 This header can be read by another application or utility (see
70 Amanda::Header) during the next phase of processing.
71
72 -r
73 Output raw files. This is similar to -h, but also disables any
74 automatic decompression. Output file names will have a .RAW
75 extension.
76
77 --exact-match
78 The host and disk are parsed as exact values
79
80 -o configoption
81 See the "CONFIGURATION OVERRIDE" section in amanda(8).
82
84 The following does an interactive restore of disk rz3g from host seine,
85 to restore particular files. Note the use of the b option to restore,
86 which causes it to read in units of two 512-byte blocks (1 Kbyte) at a
87 time. This helps keep it from complaining about short reads.
88 amrestore -p /dev/nrmt9 seine rz3g | tar -xv
89
90 The next example extracts all backup images for host seine. This is a
91 typical way to extract all data for a host after a disk crash.
92 amrestore /dev/nrmt9 seine
93
94 If the backup datestamp in the above example is 20070125 and seine has
95 level 0 backups of disks rz1a and rz1g on the tape, these files will be
96 created in the current directory:
97 seine.rz1a.19910125.0
98 seine.rz1g.19910125.0
99
100 You may also use amrestore to extract a backup image from a holding
101 disk file that has not yet been flushed to tape:
102 amrestore -p /amanda/20001119/seine.rz1a.2 | tar -xv
103
105 GNU-tar must be used to restore files from backup images created with
106 the GNUTAR dumptype. Vendor tar programs sometimes fail to read GNU Tar
107 images.
108
110 amanda(8), amanda-match(7), amfetchdump(8), amrecover(8)
111
112 The Amanda Wiki: : http://wiki.zmanda.com/
113
115 James da Silva <jds@amanda.org>
116
117 Stefan G. Weichinger <sgw@amanda.org>
118
119 Dustin J. Mitchell <dustin@zmanda.com>
120 Zmanda, Inc. (http://www.zmanda.com)
121
122
123
124Amanda 3.3.3 01/10/2013 AMRESTORE(8)