12 amrestore \- extract backup images from an Amanda tape
59 extracts backup images from the tape mounted on
61 or from the holding disk file
68 patterns given on the command line.
69 The tape or holding file must be in a format written by the
77 is not specified, all backups on the tape for the previous
82 is not specified, all backups on the tape for the previous
92 are specified, every backup on the tape is a candidate.
97 are special expression descibe in the "HOST & DISK EXPRESSION" section
101 are special expression describe in the "DATESTAMP EXPRESSION" section
106 is "rz[23]a", it would match disks
114 writes multiple backup runs to a single tape.
119 candidate backup images are extracted to files
120 in the current directory named:
123 .I hostname.diskname.datestamp.dumplevel
126 Amrestore doesn't use a changer, it restore from the tape already loaded
132 Set the blocksize used to read the tape or holding file.
133 All holding files must be read with a blocksize of 32 KBytes.
135 should normally be able to determine the blocksize for tapes
136 on its own and not need this parameter.
138 The default is 32 KBytes.
141 Do a rewind followed by a fsf <fileno> before trying to restore an image.
144 Check if we restoring from the tape with the right
149 The first matching backup image is sent to standard output,
150 which is normally a pipe to
157 It may be run again to continue selecting backups to process.
158 Make sure you specify the no-rewind
164 may report "short read" errors when reading from a pipe.
167 support a blocking factor option to let you set the read block size,
168 and you should set it to 2.
169 See the example below.
172 Compress output using the fastest method the compression program provides.
174 normally writes output files in a format understood by
178 even if the backups on the tape are compressed.
185 writes all files in compressed format,
186 even if the backups on the tape are not compressed.
187 Output file names will have a
191 extension depending on whether
195 is the preferred compression program.
196 This option is useful when the current directory disk is small.
199 Compress output using the best method the compression program provides
200 (may be very CPU intensive).
201 See the notes above about the
207 Backup images are output exactly as they are on the tape,
211 Output file names will have a
214 This option is only useful for debugging and other strange circumstances.
218 The tape header block is output at the beginning of each file.
225 may also be used to compress the result.
227 uses the header to determine the restore program to use.
229 If a header is written (\-r or \-h),
230 only 32 KBytes are output regardless of the tape blocksize.
231 This makes the resulting image usable as a holding file.
233 The following does an interactive restore of disk
237 to restore particular files.
242 which causes it to read in units of two 512-byte blocks (1 Kbyte)
244 This helps keep it from complaining about short reads.
248 % amrestore \-p /dev/nrmt9 seine rz3g | restore \-ivbf 2 \-
252 The next example extracts all backup images for host
254 This is the usual way to extract all data for a host after a disk crash.
258 % amrestore /dev/nrmt9 seine
262 If the backup datestamp in the above example is
266 has level 0 backups of disks
271 these files will be created in the current directory:
275 seine.rz1a.19910125.0
276 seine.rz1g.19910125.0
282 to extract a backup image from a holding disk
283 file that has not yet been flushed to tape:
287 % amrestore \-p /amanda/20001119/seine.rz1a.2 | restore \-ivbf 2 \-
292 may be used to generate a listing of images on a tape:
296 % mt -f /dev/nrmt9 rewind
297 % amrestore \-p /dev/nrmt9 no-such-host > /dev/null
303 to find images for host
305 It will not find any entries that match, but along the way will report
309 GNU tar must be used to restore files from backup images created with
311 Vendor tar programs sometimes fail to read GNU tar images.
313 James da Silva <jds@cs.umd.edu>
315 University of Maryland, College Park