|
Packit Service |
392537 |
'\" t
|
|
Packit Service |
392537 |
.\" Title: amrestore
|
|
Packit Service |
392537 |
.\" Author: James da Silva <jds@amanda.org>
|
|
Packit Service |
392537 |
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
|
|
Packit Service |
392537 |
.\" Date: 12/01/2017
|
|
Packit Service |
392537 |
.\" Manual: System Administration Commands
|
|
Packit Service |
392537 |
.\" Source: Amanda 3.5.1
|
|
Packit Service |
392537 |
.\" Language: English
|
|
Packit Service |
392537 |
.\"
|
|
Packit Service |
392537 |
.TH "AMRESTORE" "8" "12/01/2017" "Amanda 3\&.5\&.1" "System Administration Commands"
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" * Define some portability stuff
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit Service |
392537 |
.\" http://bugs.debian.org/507673
|
|
Packit Service |
392537 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
|
Packit Service |
392537 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Packit Service |
392537 |
.ie \n(.g .ds Aq \(aq
|
|
Packit Service |
392537 |
.el .ds Aq '
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" * set default formatting
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" disable hyphenation
|
|
Packit Service |
392537 |
.nh
|
|
Packit Service |
392537 |
.\" disable justification (adjust text to left margin only)
|
|
Packit Service |
392537 |
.ad l
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.\" * MAIN CONTENT STARTS HERE *
|
|
Packit Service |
392537 |
.\" -----------------------------------------------------------------
|
|
Packit Service |
392537 |
.SH "NAME"
|
|
Packit Service |
392537 |
amrestore \- low\-level data\-extraction from Amanda volumes
|
|
Packit Service |
392537 |
.SH "SYNOPSIS"
|
|
Packit Service |
392537 |
.HP \w'\fBamrestore\fR\ 'u
|
|
Packit Service |
392537 |
\fBamrestore\fR [\-\-config\ \fIconfig\fR] [\-r | \-c | \-C] [\-b\ \fIblocksize\fR] [\-f\ \fIfilenum\fR] [\-l\ \fIlabel\fR] [\-p] [\-h] [\-\-exact\-match] [\-\-continue\-on\-filter\-error] [\fB\-o\fR\ \fIconfigoption\fR...] [{\fIchangerspec\fR} | {[\-\-holding]\ \fIholdingfile\fR}] [\fIhostname\fR\ [\ \fIdiskname\fR\ [\ \fIdatestamp\fR\ [\ \fIhostname\fR\ [\ \fIdiskname\fR\ [\ \fIdatestamp\fR\ \&.\&.\&.\ ]\ ]\ ]\ ]\ ]]
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
Note that this is the only Amanda command which does not take a configuration name as its first argument\&.
|
|
Packit Service |
392537 |
.SH "DESCRIPTION"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fIAmrestore\fR
|
|
Packit Service |
392537 |
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\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
See
|
|
Packit Service |
392537 |
\fBamfetchdump\fR(8)
|
|
Packit Service |
392537 |
and
|
|
Packit Service |
392537 |
\fBamrecover\fR(8)
|
|
Packit Service |
392537 |
for higher\-level recoveries\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
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\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
Data is restored from the current volume in
|
|
Packit Service |
392537 |
\fIchangerspec\fR, or from the holding file
|
|
Packit Service |
392537 |
\fIholdingfile\fR\&. In most cases,
|
|
Packit Service |
392537 |
\fIchangerspec\fR
|
|
Packit Service |
392537 |
will name a particular device, e\&.g\&.,
|
|
Packit Service |
392537 |
tape:/dev/nst0
|
|
Packit Service |
392537 |
or
|
|
Packit Service |
392537 |
s3:mybucket/tape\-1\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
Only dumps matching the dump specification beginning with
|
|
Packit Service |
392537 |
\fIhostname\fR
|
|
Packit Service |
392537 |
are extracted\&. If no specification is given, every file on the volume (or the entire holdingfile) is restored\&. See the "DUMP SPECIFICATIONS" section of
|
|
Packit Service |
392537 |
\fBamanda-match\fR(7)
|
|
Packit Service |
392537 |
for more information\&.
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
Unless
|
|
Packit Service |
392537 |
\fB\-p\fR
|
|
Packit Service |
392537 |
is used, candidate backup images are extracted to files in the current directory named:
|
|
Packit Service |
392537 |
hostname\&.diskname\&.datestamp\&.dumplevel
|
|
Packit Service |
392537 |
.SH "OPTIONS"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-b \fR\fB\fIblocksize\fR\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Use the given blocksize to read the volume\&. The default is defined by the device\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-f \fR\fB\fIfilenum\fR\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Seek to file
|
|
Packit Service |
392537 |
\fIfilenum\fR
|
|
Packit Service |
392537 |
before beginning the restore operation\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-l \fR\fB\fIlabel\fR\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Check that the volume has label
|
|
Packit Service |
392537 |
\fIlabel\fR\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-p\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Pipe the first matching file to standard output\&. This is typically used in a shell pipeline to send the data to a process like
|
|
Packit Service |
392537 |
\fBtar\fR
|
|
Packit Service |
392537 |
for extraction\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-c\fR, \fB\-C\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
If the file is not already compressed, compress it using the fastest (\fB\-c\fR) or best (\fB\-C\fR) compression algorithm\&. Note that
|
|
Packit Service |
392537 |
\fBamrestore\fR
|
|
Packit Service |
392537 |
will not re\-compress an already\-compressed file\&. Without either of these options,
|
|
Packit Service |
392537 |
\fBamrestore\fR
|
|
Packit Service |
392537 |
will automatically uncompress any compressed files\&. This option is useful when the destination disk is small\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-h\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Include 32k headers on all output files, similar to a holding file\&. This header can be read by another application or utility (see
|
|
Packit Service |
392537 |
\fBAmanda::Header\fR) during the next phase of processing\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-r\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Output raw files\&. This is similar to
|
|
Packit Service |
392537 |
\fB\-h\fR, but also disables any automatic decompression and/or decryption\&. Output file names will have a
|
|
Packit Service |
392537 |
\&.RAW
|
|
Packit Service |
392537 |
extension\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-\-exact\-match\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
The host and disk are parsed as exact values\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-\-continue\-on\-filter\-error\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
continue to the next dump if a filter (decompression/decryption) fail\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fB\-o \fR\fB\fIconfigoption\fR\fR
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
See the "CONFIGURATION OVERRIDE" section in
|
|
Packit Service |
392537 |
\fBamanda\fR(8)\&.
|
|
Packit Service |
392537 |
.RE
|
|
Packit Service |
392537 |
.SH "EXAMPLES"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
The following does an interactive restore of disk
|
|
Packit Service |
392537 |
\fIrz3g\fR
|
|
Packit Service |
392537 |
from host
|
|
Packit Service |
392537 |
\fIseine\fR, to restore particular files\&. Note the use of the
|
|
Packit Service |
392537 |
\fIb\fR
|
|
Packit Service |
392537 |
option to
|
|
Packit Service |
392537 |
\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\&.
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
amrestore \-p /dev/nrmt9 seine rz3g | tar \-xv
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
The next example extracts all backup images for host
|
|
Packit Service |
392537 |
\fIseine\fR\&. This is a typical way to extract all data for a host after a disk crash\&.
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
amrestore /dev/nrmt9 seine
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
If the backup datestamp in the above example is
|
|
Packit Service |
392537 |
20070125
|
|
Packit Service |
392537 |
and
|
|
Packit Service |
392537 |
\fIseine\fR
|
|
Packit Service |
392537 |
has level 0 backups of disks
|
|
Packit Service |
392537 |
\fIrz1a\fR
|
|
Packit Service |
392537 |
and
|
|
Packit Service |
392537 |
\fIrz1g\fR
|
|
Packit Service |
392537 |
on the tape, these files will be created in the current directory:
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
seine\&.rz1a\&.19910125\&.0
|
|
Packit Service |
392537 |
seine\&.rz1g\&.19910125\&.0
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
You may also use
|
|
Packit Service |
392537 |
\fBamrestore\fR
|
|
Packit Service |
392537 |
to extract a backup image from a holding disk file that has not yet been flushed to tape:
|
|
Packit Service |
392537 |
.nf
|
|
Packit Service |
392537 |
amrestore \-p /amanda/20001119/seine\&.rz1a\&.2 | tar \-xv
|
|
Packit Service |
392537 |
.fi
|
|
Packit Service |
392537 |
.SH "CAVEATS"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBGNU\-tar\fR
|
|
Packit Service |
392537 |
must be used to restore files from backup images created with the GNUTAR dumptype\&. Vendor tar programs sometimes fail to read GNU Tar images\&.
|
|
Packit Service |
392537 |
.SH "SEE ALSO"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBamanda\fR(8),
|
|
Packit Service |
392537 |
\fBamanda-match\fR(7),
|
|
Packit Service |
392537 |
\fBamfetchdump\fR(8),
|
|
Packit Service |
392537 |
\fBamrecover\fR(8)
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
The Amanda Wiki:
|
|
Packit Service |
392537 |
: http://wiki.zmanda.com/
|
|
Packit Service |
392537 |
.SH "AUTHORS"
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBJames da Silva\fR <\&jds@amanda\&.org\&>
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBStefan G\&. Weichinger\fR <\&sgw@amanda\&.org\&>
|
|
Packit Service |
392537 |
.PP
|
|
Packit Service |
392537 |
\fBDustin J\&. Mitchell\fR <\&dustin@zmanda\&.com\&>
|
|
Packit Service |
392537 |
.RS 4
|
|
Packit Service |
392537 |
Zmanda, Inc\&. (http://www\&.zmanda\&.com)
|
|
Packit Service |
392537 |
.RE
|