Imported Debian patch 2.5.1-1
[debian/amanda] / man / amrestore.8
index a51961fbf2b04f75509bf9ae4689e479f2ab5752..15849198be90a42b12e4852db4ec644c8579e251 100644 (file)
-.\"
-.de EX
-.if t .ft C
-.nf
+.\"Generated by db2man.xsl. Don't modify this, modify the source.
+.de Sh \" Subsection
+.br
+.if t .Sp
+.ne 5
+.PP
+\fB\\$1\fR
+.PP
 ..
-.de EE
-.fi
-.if t .ft
+.de Sp \" Vertical space (when we can't use .PP)
+.if t .sp .5v
+.if n .sp
 ..
-.TH AMRESTORE 8
-.SH NAME
-amrestore \- extract backup images from an Amanda tape
-.SH SYNOPSIS
-.B amrestore
-[
-.B \-r
-|
-.B \-c
-|
-.B \-C
-]
-[
-.B \-b
-.I blocksize
-]
-[
-.B \-f
-.I fileno
-]
-[
-.B \-l
-.I label
-]
-[
-.B \-p
-]
-[
-.B \-h
-]
-.I tapedevice
-|
-.I holdingfile
-[
-.I hostname
-[
-.I diskname
-[
-.I datestamp
-[
-.I hostname
-[
-.I diskname
-[
-.I datestamp
-\&...
-]]]]]]
-.SH DESCRIPTION
-.B Amrestore
+.de Ip \" List item
+.br
+.ie \\n(.$>=3 .ne \\$3
+.el .ne 3
+.IP "\\$1" \\$2
+..
+.TH "AMRESTORE" 8 "" "" ""
+.SH "NAME"
+amrestore - extract backup images from an Amanda tape
+.SH "SYNOPSIS"
+.HP 10
+\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 ...]]]]]]
+.SH "DESCRIPTION"
+.PP
+\fBAmrestore\fR
 extracts backup images from the tape mounted on
-.I tapedevice
+\fBtapedevice\fR
 or from the holding disk file
-.I holdingfile
+\fBholdingfile\fR
 that match
-.IR hostname ,
-.I diskname
+\fBhostname\fR,
+\fBdiskname\fR
 and
-.I datestamp
-patterns given on the command line.
-The tape or holding file must be in a format written by the
-.B amdump
+\fBdatestamp\fR
+patterns given on the command line. The tape or holding file must be in a format written by the
+\fBamdump\fR
 or
-.B amflush
+\fBamflush\fR
 program.
-.LP
+.PP
 If
-.I diskname
+\fBdiskname\fR
 is not specified, all backups on the tape for the previous
-.I hostname
-are candidates.
-If
-.I datestamp
+\fBhostname\fR
+are candidates. If
+\fBdatestamp\fR
 is not specified, all backups on the tape for the previous
-.I hostname
+\fBhostname\fR
 and
-.I diskname
-are candidates.
-If no
-.IR hostname ,
-.I diskname
+\fBdiskname\fR
+are candidates. If no
+\fBhostname\fR,
+\fBdiskname\fR
 or
-.I datestamp
+\fBdatestamp\fR
 are specified, every backup on the tape is a candidate.
-.LP
-.I Hostname
+.PP
+\fBHostname\fR
 and
-.I diskname
-are special expression descibe in the "HOST & DISK EXPRESSION" section
-of
-.IR amanda (8).
-.I Datestamp
-are special expression describe in the "DATESTAMP EXPRESSION" section
-of
-.IR amanda (8).
-For example, if
-.I diskname
+\fBdiskname\fR
+are special expressions described in the "HOST & DISK EXPRESSION" section of
+\fBamanda\fR(8).
+\fBDatestamp\fR
+are special expression described in the "DATESTAMP EXPRESSION" section of
+\fBamanda\fR(8). For example, if
+\fBdiskname\fR
 is "rz[23]a", it would match disks
-.B rz2a
+\fBrz2a\fR
 and
-.BR rz3a .
-.LP
-.I Datestamp
+\fBrz3a\fR.
+.PP
+\fBDatestamp\fR
 is useful if
-.B amflush
+\fBamflush\fR
 writes multiple backup runs to a single tape.
 .PP
 Unless
-.B \-p
-is used,
-candidate backup images are extracted to files
-in the current directory named:
-.LP
-.RS
-.I hostname.diskname.datestamp.dumplevel
-.RE
+\fB-p\fR
+is used, candidate backup images are extracted to files in the current directory named:
+.PP
+\fBhostname.diskname.datestamp.dumplevel\fR
 .PP
-Amrestore doesn't use a changer, it restore from the tape already loaded
-in the
-.I tapedevice.
-.SH OPTIONS
+Amrestore doesn't use a changer, it restore from the tape already loaded in the
+\fBtapedevice.\fR
+.SH "OPTIONS"
 .TP
-.B \-b
-Set the blocksize used to read the tape or holding file.
-All holding files must be read with a blocksize of 32 KBytes.
-.B Amrestore
-should normally be able to determine the blocksize for tapes
-on its own and not need this parameter.
-.IP
+\fB-b\fR
+Set the blocksize used to read the tape or holding file. All holding files must be read with a blocksize of 32 KBytes.
+\fBAmrestore\fR
+should normally be able to determine the blocksize for tapes on its own and not need this parameter.
+.PP
 The default is 32 KBytes.
 .TP
-.B \-f
+\fB-f\fR
 Do a rewind followed by a fsf <fileno> before trying to restore an image.
 .TP
-.B \-l
+\fB-l\fR
 Check if we restoring from the tape with the right
-.I label
+\fBlabel\fR
 .TP
-.B \-p
-Pipe output.
-The first matching backup image is sent to standard output,
-which is normally a pipe to
-.B restore
+\fB-p\fR
+Pipe output. The first matching backup image is sent to standard output, which is normally a pipe to
+\fBrestore\fR
 or
-.BR tar ,
-then
-.B amrestore
-quits.
-It may be run again to continue selecting backups to process.
-Make sure you specify the no-rewind
-.I tapedevice
+\fBtar\fR, then
+\fBamrestore\fR
+quits. It may be run again to continue selecting backups to process. Make sure you specify the no-rewind
+\fBtapedevice\fR
 when doing this.
-.IP
+.PP
 Note:
-.B restore
-may report "short read" errors when reading from a pipe.
-Most versions of
-.B restore
-support a blocking factor option to let you set the read block size,
-and you should set it to 2.
-See the example below.
+\fBrestore\fR
+may report "short read" errors when reading from a pipe. Most versions of
+\fBrestore\fR
+support a blocking factor option to let you set the read block size, and you should set it to 2. See the example below.
 .TP
-.B \-c
+\fB-c\fR
 Compress output using the fastest method the compression program provides.
-.B Amrestore
+\fBAmrestore\fR
 normally writes output files in a format understood by
-.B restore
+\fBrestore\fR
 or
-.BR tar ,
-even if the backups on the tape are compressed.
-With the
-.B \-c
+\fBtar\fR, even if the backups on the tape are compressed. With the
+\fB-c\fR
 or
-.B \-C
+\fB-C\fR
 option,
-.B amrestore
-writes all files in compressed format,
-even if the backups on the tape are not compressed.
-Output file names will have a
-.I .Z
+\fBamrestore\fR
+writes all files in compressed format, even if the backups on the tape are not compressed. Output file names will have a
+.Z
 or
-.I .gz
+.gz
 extension depending on whether
-.B compress
+\fBcompress\fR
 or
-.B gzip
-is the preferred compression program.
-This option is useful when the current directory disk is small.
+\fBgzip\fR
+is the preferred compression program. This option is useful when the current directory disk is small.
 .TP
-.B \-C
-Compress output using the best method the compression program provides
-(may be very CPU intensive).
-See the notes above about the
-.B \-c
+\fB-C\fR
+Compress output using the best method the compression program provides (may be very CPU intensive). See the notes above about the
+\fB-c\fR
 option.
 .TP
-.B \-r
-Raw output.
-Backup images are output exactly as they are on the tape,
-including the
-.B amdump
-headers.
-Output file names will have a
-.I .RAW
-extension.
-This option is only useful for debugging and other strange circumstances.
+\fB-r\fR
+Raw output. Backup images are output exactly as they are on the tape, including the
+\fBamdump\fR
+headers. Output file names will have a
+.RAW
+extension. This option is only useful for debugging and other strange circumstances.
 .TP
-.B \-h
-Header output.
-The tape header block is output at the beginning of each file.
-This is like
-.B \-r
+\fB-h\fR
+Header output. The tape header block is output at the beginning of each file. This is like
+\fB-r\fR
 except
-.B \-c
+\fB-c\fR
 or
-.B \-C
+\fB-C\fR
 may also be used to compress the result.
-.B Amrecover
+\fBAmrecover\fR
 uses the header to determine the restore program to use.
-.LP
-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.
-.SH EXAMPLES
+.PP
+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.
+.TP
+\fB-o\fR \fIconfigoption\fR
+See the "\fBCONFIGURATION OVERWRITE\fR" section in
+\fBamanda\fR(8).
+.SH "EXAMPLES"
+.PP
 The following does an interactive restore of disk
-.I rz3g
+\fBrz3g\fR
 from host
-.IR seine ,
-to restore particular files.
-Note the use of the
-.B b
+\fBseine\fR, to restore particular files. Note the use of the
+\fBb\fR
 option to
-.BR restore ,
-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.
-.LP
-.RS
-.EX
-% amrestore \-p /dev/nrmt9 seine rz3g | restore \-ivbf 2 \-
-.EE
-.RE
-.LP
+\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.
+.sp
+.nf
+
+% amrestore -p /dev/nrmt9 seine rz3g | restore -ivbf 2 -
+
+.fi
+.sp
+.PP
 The next example extracts all backup images for host
-.IR seine .
-This is the usual way to extract all data for a host after a disk crash.
-.LP
-.RS
-.EX
+\fBseine\fR. This is the usual way to extract all data for a host after a disk crash.
+.sp
+.nf
+
 % amrestore /dev/nrmt9 seine
-.EE
-.RE
-.LP
+
+.fi
+.sp
+.PP
 If the backup datestamp in the above example is
-.I 19910125
+19910125
 and
-.I seine
+\fBseine\fR
 has level 0 backups of disks
-.I rz1a
+\fBrz1a\fR
 and
-.I rz1g
-on the tape,
-these files will be created in the current directory:
-.LP
-.RS
-.EX
+\fBrz1g\fR
+on the tape, these files will be created in the current directory:
+.sp
+.nf
+
 seine.rz1a.19910125.0
 seine.rz1g.19910125.0
-.EE
-.RE
-.LP
+
+.fi
+.sp
+.PP
 You may also use
-.B amrestore
-to extract a backup image from a holding disk
-file that has not yet been flushed to tape:
-.LP
-.RS
-.EX
-% amrestore \-p /amanda/20001119/seine.rz1a.2 | restore \-ivbf 2 \-
-.EE
-.RE
-.LP
-.B Amrestore
+\fBamrestore\fR
+to extract a backup image from a holding disk file that has not yet been flushed to tape:
+.sp
+.nf
+
+% amrestore -p /amanda/20001119/seine.rz1a.2 | restore -ivbf 2 -
+
+.fi
+.sp
+.PP
+\fBAmrestore\fR
 may be used to generate a listing of images on a tape:
-.LP
-.RS
-.EX
+.sp
+.nf
+
 % mt -f /dev/nrmt9 rewind
-% amrestore \-p /dev/nrmt9 no-such-host > /dev/null
-.EE
-.RE
-.LP
+% amrestore -p /dev/nrmt9 no-such-host > /dev/null
+
+.fi
+.sp
+.PP
 This asks
-.B amrestore
+\fBamrestore\fR
 to find images for host
-.BR no-such-host .
-It will not find any entries that match, but along the way will report
-each image it skips.
-.SH CAVEATS
-.LP
-GNU tar must be used to restore files from backup images created with
-the GNUTAR dumptype.
-Vendor tar programs sometimes fail to read GNU tar images.
-.SH AUTHOR
-James da Silva <jds@cs.umd.edu>
-.br
-University of Maryland, College Park
+\fBno-such-host\fR. It will not find any entries that match, but along the way will report each image it skips.
+.SH "CAVEATS"
+.PP
+\fBGNU-tar\fR
+must be used to restore files from backup images created with the GNUTAR dumptype. Vendor tar programs sometimes fail to read GNU tar images.
+.SH "AUTHOR"
+.PP
+James da Silva,
+<jds@amanda.org>, University of Maryland, College Park: Original text
+.PP
+Stefan G. Weichinger,
+<sgw@amanda.org>, maintainer of the
+\fBAmanda\fR-documentation: XML-conversion
 .SH "SEE ALSO"
-amanda(8),
-amdump(8),
-amflush(8),
-tar(1)
-restore(8)
+.PP
+\fBamanda\fR(8),
+\fBamdump\fR(8),
+\fBamflush\fR(8),
+\fBtar\fR(1)\fBrestore\fR(8)
+