📄 amfetchdump.8
字号:
.\" Title: amfetchdump.\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>.\" Date: 05/13/2008.\" Manual: .\" Source: .\".TH "AMFETCHDUMP" "8" "05/13/2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"amfetchdump - extract backup images from multiple Amanda tapes..SH "SYNOPSIS".HP 12\fBamfetchdump\fR [\-pcClawns] [\-d\ \fIdevice\fR] [\-O\ \fIdirectory\fR] [\-b\ \fIblocksize\fR] \fIconfig\fR \fIhostname\fR [\fIdisk\fR\ [\ \fIdate\fR\ [\ \fIlevel\fR\ [\ \fIhostname\fR\ [\.\.\.]\ ]\ ]\ ]] [\-o\ \fIconfigoption\fR]....SH "DESCRIPTION".PP\fBAmfetchdump\fRpulls one or more matching dumps from tape or from the holding disk, handling the reassembly of multi\-tape split dump files as well as any tape autochanger operations\..PPIt will automatically use the logs created by\fBamdump\fR(8)to locate available dumps on tape, in the same way that the\fBfind\fRfeature of\fBamadmin\fR(8)lists available dumps\. If these logs are unavailable, it can search tape\-by\-tape to find what it needs, and can generate new logs to serve as an emergency tape inventory\..PPThe\fIhostname\fR,\fIdiskname\fR,\fIdatestamp\fR, and\fIlevel\fRdump pattern\-matching works as in\fBamrestore\fR(8), with the added requirement that at minimum a\fIhostname\fRmust be specified when not in inventory mode\..PPUnless\fB\-p\fRis used, backup images are extracted to files in the current directory named:.PP\fIhostname\.diskname\.datestamp\.dumplevel\fR.SH "OPTIONS".PP\fB\-p\fR.RS 4Pipe exactly one complete dump file to\fIstdout\fR, instead of writing the file to disk\. This will restore only the first matching dumpfile (where "first" is determined by the dump log search facility)\..RE.PP\fB\-d\fR \fIdevice\fR.RS 4Restore from this tape device instead of the default\..RE.PP\fB\-O\fR \fIdirectory\fR.RS 4Output restored files to this directory, instead of to the current working directory\..RE.PP\fB\-c\fR.RS 4Compress output, fastest method available\..RE.PP\fB\-C\fR.RS 4Compress output, smallest file size method available\..RE.PP\fB\-l\fR.RS 4Leave dumps in the compressed/uncompressed state in which they were found on tape\. By default,\fBamfetchdump\fRwill automatically uncompress when restoring\..RE.PP\fB\-a\fR.RS 4Assume that all tapes are already available, via tape changer or otherwise, instead of prompting the operator to ensure that all tapes are loaded\..RE.PP\fB\-w\fR.RS 4Wait to put split dumps together until all chunks have been restored\. Normally,\fBamfetchdump\fRwill attempt to read pieces of a split file from tape in order, so that it can assemble them simply by appending each file to the first\. This option disables the appending behavior, and instead restores each piece as an individual file and reassembles them only after all have been restored\..sp.it 1 an-trap.nr an-no-space-flag 1.nr an-break-flag 1.brNoteThis requires at least double the size of your dump in free disk space, in order to build the final assembled dumpfile\.This behavior is implicitly invoked in circumstances where knowing the location of all dumps on tape in advance is not possible, such as when you are restoring without log files\..RE.PP\fB\-n\fR.RS 4Do not reassemble split dump files at all, just restore each piece as an individual file\..RE.PP\fB\-s\fR.RS 4Do not fast\-forward straight to needed files on tape\. This will slow down most restores substantially\. Only use this option if your tape drive does not properly support the fast\-forward operation\..RE.PP\fB\-b\fR \fIblocksize\fR.RS 4Force a particular block size when reading from tapes\. This value will usually be autodetected, and should not normally need to be set\..RE.PP\fB\-o\fR \fIconfigoption\fR.RS 4See the "\fBCONFIGURATION OVERRIDE\fR" section in\fBamanda\fR(8)\..RE.SH "EXAMPLES".PPAll the examples here assume your configuration is called\fISetA\fR\..PPHere\'s a simple case, restoring all known dumps of the host vanya to the current working directory\..sp.RS 4.nf$ amfetchdump SetA vanya.fi.RE.PPA more likely scenario involves restoring a particular dump from a particular date\. We\'ll pipe this one to\fBGNU\-tar\fRas well, to automatically extract the dump\..sp.RS 4.nf$ amfetchdump \-p SetA vanya /home 20051020 | gtar \-xvpf \-.fi.RE.sp.SH "CAVEATS".PP\fBAmfetchdump\fRis dependent on accessing your server\'s config, tape changer, and (normally) dump logs\. As such, it\'s not necessarily the most useful tool when those have all been wiped out and you desperately need to pull things from your tape\. Pains have been taken to make it as capable as possible, but for seriously minimialist restores, look to\fBamrestore\fR(8)or\fBdd\fR(8)instead\..SH "AUTHOR".PPJohn Stange,<building@nap\.edu>, National Academies Press.PPIan Turner,<ian@zmanda\.com>: XML\-conversion.SH "SEE ALSO".PP\fBamanda\fR(8),\fBamadmin\fR(8),\fBamrestore\fR(8),\fBtar\fR(1),\fBrestore\fR(8),\fI\%http://wiki.zmanda.com\fR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -