1AMRESTORE(8)            System Administration Commands            AMRESTORE(8)
2
3
4

NAME

6       amrestore - low-level data-extraction from Amanda volumes
7

SYNOPSIS

9       amrestore [--config config] [-r | -c | -C] [-b blocksize] [-f filenum]
10                 [-l label] [-p] [-h] [{-o configoption}...] [{changerspec} |
11                 {[--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

DESCRIPTION

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 "HOST & DISK EXPRESSIONS"
38       section of amanda(8) for the format of the hostname and diskname
39       parameters, and the "DATESTAMP EXPRESSIONS" section for the format of
40       the datestamp parameters.
41
42       Unless -p is used, candidate backup images are extracted to files in
43       the current directory named: hostname.diskname.datestamp.dumplevel
44

OPTIONS

46       -b blocksize
47           Use the given blocksize to read the volume. The default is defined
48           by the device.
49
50       -f filenum
51           Seek to file filenum before beginning the restore operation.
52
53       -l label
54           Check that the volume has label label.
55
56       -p
57           Pipe the first matching file to standard output. This is typically
58           used in a shell pipeline to send the data to a process like tar for
59           extraction.
60
61       -c, -C
62           If the file is not already compressed, compress it using the
63           fastest (-c) or best (-C) compression algorithm. Note that
64           amrestore will not re-compress an already-compressed file. Without
65           either of these options, amrestore will automatically uncompress
66           any compressed files. This option is useful when the destination
67           disk is small.
68
69       -h
70           Include 32k headers on all output files, similar to a holding file.
71           This header can be read by another application or utility (see
72           Amanda::Header) during the next phase of processing.
73
74       -r
75           Output raw files. This is similar to -h, but also disables any
76           automatic decompression. Output file names will have a .RAW
77           extension.
78
79       -o configoption
80           See the "CONFIGURATION OVERRIDE" section in amanda(8).
81

EXAMPLES

83       The following does an interactive restore of disk rz3g from host seine,
84       to restore particular files. Note the use of the b option to restore,
85       which causes it to read in units of two 512-byte blocks (1 Kbyte) at a
86       time. This helps keep it from complaining about short reads.
87         amrestore -p /dev/nrmt9 seine rz3g | tar -xv
88
89       The next example extracts all backup images for host seine. This is a
90       typical way to extract all data for a host after a disk crash.
91         amrestore /dev/nrmt9 seine
92
93       If the backup datestamp in the above example is 20070125 and seine has
94       level 0 backups of disks rz1a and rz1g on the tape, these files will be
95       created in the current directory:
96         seine.rz1a.19910125.0
97         seine.rz1g.19910125.0
98
99       You may also use amrestore to extract a backup image from a holding
100       disk file that has not yet been flushed to tape:
101         amrestore -p /amanda/20001119/seine.rz1a.2 | tar -xv
102

CAVEATS

104       GNU-tar must be used to restore files from backup images created with
105       the GNUTAR dumptype. Vendor tar programs sometimes fail to read GNU Tar
106       images.
107

SEE ALSO

109       amanda(8), amfetchdump(8), amrecover(8)
110
111       The Amanda Wiki: : http://wiki.zmanda.com/
112

AUTHORS

114       James da Silva <jds@amanda.org>
115
116       Stefan G. Weichinger <sgw@amanda.org>
117
118       Dustin J. Mitchell <dustin@zmanda.com>
119           Zmanda, Inc. (http://www.zmanda.com)
120
121
122
123Amanda 3.1.3                      10/04/2010                      AMRESTORE(8)
Impressum