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.1.0
10 .TH "AMRESTORE" "8" "06/01/2010" "Amanda 3\&.1\&.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 "HOST & DISK EXPRESSIONS" section of
58 parameters, and the "DATESTAMP EXPRESSIONS" section for the format of the
64 is used, candidate backup images are extracted to files in the current directory named:
65 hostname\&.diskname\&.datestamp\&.dumplevel
68 \fB\-b \fR\fB\fIblocksize\fR\fR
70 Use the given blocksize to read the volume\&. The default is defined by the device\&.
73 \fB\-f \fR\fB\fIfilenum\fR\fR
77 before beginning the restore operation\&.
80 \fB\-l \fR\fB\fIlabel\fR\fR
82 Check that the volume has label
88 Pipe the first matching file to standard output\&. This is typically used in a shell pipeline to send the data to a process like
95 If the file is not already compressed, compress it using the fastest (\fB\-c\fR) or best (\fB\-C\fR) compression algorithm\&. Note that
97 will not re\-compress an already\-compressed file\&. Without either of these options,
99 will automatically uncompress any compressed files\&. This option is useful when the destination disk is small\&.
104 Include 32k headers on all output files, similar to a holding file\&. This header can be read by another application or utility (see
105 \fBAmanda::Header\fR) during the next phase of processing\&.
110 Output raw files\&. This is similar to
111 \fB\-h\fR, but also disables any automatic decompression\&. Output file names will have a
116 \fB\-o \fR\fB\fIconfigoption\fR\fR
118 See the "CONFIGURATION OVERRIDE" section in
123 The following does an interactive restore of disk
126 \fIseine\fR, to restore particular files\&. Note the use of the
129 \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\&.
131 amrestore \-p /dev/nrmt9 seine rz3g | tar \-xv
134 The next example extracts all backup images for host
135 \fIseine\fR\&. This is a typical way to extract all data for a host after a disk crash\&.
137 amrestore /dev/nrmt9 seine
140 If the backup datestamp in the above example is
144 has level 0 backups of disks
148 on the tape, these files will be created in the current directory:
150 seine\&.rz1a\&.19910125\&.0
151 seine\&.rz1g\&.19910125\&.0
156 to extract a backup image from a holding disk file that has not yet been flushed to tape:
158 amrestore \-p /amanda/20001119/seine\&.rz1a\&.2 | tar \-xv
163 must be used to restore files from backup images created with the GNUTAR dumptype\&. Vendor tar programs sometimes fail to read GNU Tar images\&.
167 \fBamfetchdump\fR(8),
171 : http://wiki.zmanda.com/
174 \fBJames da Silva\fR <\&jds@amanda\&.org\&>
176 \fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>
178 \fBDustin J\&. Mitchell\fR <\&dustin@zmanda\&.com\&>
180 Zmanda, Inc\&. (http://www\&.zmanda\&.com)