3 .\" Generator: DocBook XSL Stylesheets v1.72.0 <http://docbook.sf.net/>
8 .TH "AMRESTORE" "8" "02/07/2007" "" ""
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 amrestore \- extract backup images from an Amanda tape
17 \fBamrestore\fR [\-r | \-c | \-C] [\-b | \fIblocksize\fR] [\-f | \fIfileno\fR] [\-l | \fIlabel\fR] [\-p] [\-h] \fItapedevice\fR|\ \fIholdingfile\fR [\fIhostname\fR [\fIdiskname\fR [\fIdatestamp\fR [\fIhostname\fR [\fIdiskname\fR [\fIdatestamp\fR | ...]]]]]]
21 extracts backup images from the tape mounted on
23 or from the holding disk file
30 patterns given on the command line. The tape or holding file must be in a format written by the
38 is not specified, all backups on the tape for the previous
42 is not specified, all backups on the tape for the previous
51 are specified, every backup on the tape is a candidate.
56 are special expressions described in the "HOST & DISK EXPRESSION" section of
59 are special expression described in the "DATESTAMP EXPRESSION" section of
60 \fBamanda\fR(8). For example, if
62 is "rz[23]a", it would match disks
70 writes multiple backup runs to a single tape.
74 is used, candidate backup images are extracted to files in the current directory named:
76 \fIhostname.diskname.datestamp.dumplevel\fR
78 Amrestore doesn't use a changer, it restore from the tape already loaded in the
84 Set the blocksize used to read the tape or holding file. All holding files must be read with a blocksize of 32 KBytes.
86 should normally be able to determine the blocksize for tapes on its own and not need this parameter.
89 The default is 32 KBytes.
93 Do a rewind followed by a fsf <fileno> before trying to restore an image.
98 Check if we restoring from the tape with the right
104 Pipe output. The first matching backup image is sent to standard output, which is normally a pipe to
109 quits. It may be run again to continue selecting backups to process. Make sure you specify the no\-rewind
116 may report "short read" errors when reading from a pipe. Most versions of
118 support a blocking factor option to let you set the read block size, and you should set it to 2. See the example below.
122 Compress output using the fastest method the compression program provides.
124 normally writes output files in a format understood by
127 \fBtar\fR, even if the backups on the tape are compressed. With the
133 writes all files in compressed format, even if the backups on the tape are not compressed. Output file names will have a
137 extension depending on whether
141 is the preferred compression program. This option is useful when the current directory disk is small.
146 Compress output using the best method the compression program provides (may be very CPU intensive). See the notes above about the
153 Raw output. Backup images are output exactly as they are on the tape, including the
155 headers. Output file names will have a
157 extension. This option is only useful for debugging and other strange circumstances.
162 Header output. The tape header block is output at the beginning of each file. This is like
168 may also be used to compress the result.
170 uses the header to determine the restore program to use.
173 If a header is written (\-r or \-h), only 32 KBytes are output regardless of the tape blocksize. This makes the resulting image usable as a holding file.
175 \fB\-o\fR \fIconfigoption\fR
177 See the "\fBCONFIGURATION OVERWRITE\fR" section in
182 The following does an interactive restore of disk
185 \fIseine\fR, to restore particular files. Note the use of the
188 \fBrestore\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.
192 % amrestore \-p /dev/nrmt9 seine rz3g | restore \-ivbf 2 \-
197 The next example extracts all backup images for host
198 \fIseine\fR. This is the usual way to extract all data for a host after a disk crash.
202 % amrestore /dev/nrmt9 seine
207 If the backup datestamp in the above example is
211 has level 0 backups of disks
215 on the tape, these files will be created in the current directory:
219 seine.rz1a.19910125.0
220 seine.rz1g.19910125.0
227 to extract a backup image from a holding disk file that has not yet been flushed to tape:
231 % amrestore \-p /amanda/20001119/seine.rz1a.2 | restore \-ivbf 2 \-
237 may be used to generate a listing of images on a tape:
241 % mt \-f /dev/nrmt9 rewind
242 % amrestore \-p /dev/nrmt9 no\-such\-host > /dev/null
249 to find images for host
250 \fBno\-such\-host\fR. It will not find any entries that match, but along the way will report each image it skips.
254 must be used to restore files from backup images created with the GNUTAR dumptype. Vendor tar programs sometimes fail to read GNU tar images.
258 <jds@amanda.org>, University of Maryland, College Park: Original text
260 Stefan G. Weichinger,
261 <sgw@amanda.org>, maintainer of the
262 \fIAmanda\fR\-documentation: XML\-conversion