3 .\" Author: James da Silva <jds@amanda.org>
4 .\" Generator: DocBook XSL Stylesheets vsnapshot_8273 <http://docbook.sf.net/>
6 .\" Manual: System Administration Commands
7 .\" Source: Amanda 3.2.0
10 .TH "AMRESTORE" "8" "10/18/2010" "Amanda 3\&.2\&.0" "System Administration Commands"
11 .\" -----------------------------------------------------------------
12 .\" * set default formatting
13 .\" -----------------------------------------------------------------
14 .\" disable hyphenation
16 .\" disable justification (adjust text to left margin only)
18 .\" -----------------------------------------------------------------
19 .\" * MAIN CONTENT STARTS HERE *
20 .\" -----------------------------------------------------------------
22 amrestore \- low\-level data\-extraction from Amanda volumes
24 .HP \w'\fBamrestore\fR\ 'u
25 \fBamrestore\fR [\-\-config\ \fIconfig\fR] [\-r | \-c | \-C] [\-b\ \fIblocksize\fR] [\-f\ \fIfilenum\fR] [\-l\ \fIlabel\fR] [\-p] [\-h] [\fB\-o\fR\ \fIconfigoption\fR...] [{\fIchangerspec\fR} | {[\-\-holding]\ \fIholdingfile\fR}] [\fIhostname\fR\ [\ \fIdiskname\fR\ [\ \fIdatestamp\fR\ [\ \fIhostname\fR\ [\ \fIdiskname\fR\ [\ \fIdatestamp\fR\ \&.\&.\&.\ ]\ ]\ ]\ ]\ ]]
27 Note that this is the only Amanda command which does not take a configuration name as its first argument\&.
31 is a very low\-level tool for extracting data from Amanda volumes\&. It does not consult any catalog information or other metadata, basing its operations only on the headers found on the volume\&. This makes it an appropriate tool for bare\-metal restores of an Amanda server, or other situations where the catalog is not available\&.
37 for higher\-level recoveries\&.
39 The tool does not reassemble split dumps, but can uncompress compressed dumps\&. Note that decompression may fail for split parts after the first\&. If this occurs, extract the parts without decompressing, concatenate them, and decompress the result\&.
41 Data is restored from the current volume in
42 \fIchangerspec\fR, or from the holding file
43 \fIholdingfile\fR\&. In most cases,
45 will name a particular device, e\&.g\&.,
48 s3:mybucket/tape\-1\&.
50 Only dumps matching the dump specification beginning with
52 are extracted\&. If no specification is given, every file on the volume (or the entire holdingfile) is restored\&. See the "DUMP SPECIFICATIONS" section of
54 for more information\&.
58 is used, candidate backup images are extracted to files in the current directory named:
59 hostname\&.diskname\&.datestamp\&.dumplevel
62 \fB\-b \fR\fB\fIblocksize\fR\fR
64 Use the given blocksize to read the volume\&. The default is defined by the device\&.
67 \fB\-f \fR\fB\fIfilenum\fR\fR
71 before beginning the restore operation\&.
74 \fB\-l \fR\fB\fIlabel\fR\fR
76 Check that the volume has label
82 Pipe the first matching file to standard output\&. This is typically used in a shell pipeline to send the data to a process like
89 If the file is not already compressed, compress it using the fastest (\fB\-c\fR) or best (\fB\-C\fR) compression algorithm\&. Note that
91 will not re\-compress an already\-compressed file\&. Without either of these options,
93 will automatically uncompress any compressed files\&. This option is useful when the destination disk is small\&.
98 Include 32k headers on all output files, similar to a holding file\&. This header can be read by another application or utility (see
99 \fBAmanda::Header\fR) during the next phase of processing\&.
104 Output raw files\&. This is similar to
105 \fB\-h\fR, but also disables any automatic decompression\&. Output file names will have a
110 \fB\-o \fR\fB\fIconfigoption\fR\fR
112 See the "CONFIGURATION OVERRIDE" section in
117 The following does an interactive restore of disk
120 \fIseine\fR, to restore particular files\&. Note the use of the
123 \fIrestore\fR, which causes it to read in units of two 512\-byte blocks (1 Kbyte) at a time\&. This helps keep it from complaining about short reads\&.
125 amrestore \-p /dev/nrmt9 seine rz3g | tar \-xv
128 The next example extracts all backup images for host
129 \fIseine\fR\&. This is a typical way to extract all data for a host after a disk crash\&.
131 amrestore /dev/nrmt9 seine
134 If the backup datestamp in the above example is
138 has level 0 backups of disks
142 on the tape, these files will be created in the current directory:
144 seine\&.rz1a\&.19910125\&.0
145 seine\&.rz1g\&.19910125\&.0
150 to extract a backup image from a holding disk file that has not yet been flushed to tape:
152 amrestore \-p /amanda/20001119/seine\&.rz1a\&.2 | tar \-xv
157 must be used to restore files from backup images created with the GNUTAR dumptype\&. Vendor tar programs sometimes fail to read GNU Tar images\&.
161 \fBamanda-match\fR(7),
162 \fBamfetchdump\fR(8),
166 : http://wiki.zmanda.com/
169 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
171 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>
173 \fBDustin J\&. Mitchell\fR <\&dustin@zmanda\&.com\&>
175 Zmanda, Inc\&. (http://www\&.zmanda\&.com)