⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 amanda.8

📁 开源备份软件源码 AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a backup system that a
💻 8
📖 第 1 页 / 共 2 页
字号:
.\"     Title: amanda.\"    Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>.\"      Date: 05/13/2008.\"    Manual: .\"    Source: .\".TH "AMANDA" "8" "05/13/2008" "" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"amanda - Advanced Maryland Automatic Network Disk Archiver.SH "SYNOPSIS".HP 8\fBamadmin\fR \fIconfig\fR \fIcommand\fR [\fIoptions\fR].br.HP 8\fBamcheck\fR [\fIoptions\fR] \fIconfig\fR.br.HP 10\fBamcheckdb\fR \fIconfig\fR.br.HP 10\fBamcleanup\fR \fIconfig\fR.br.HP 8\fBamcrypt\fR.br.HP 5\fBamdd\fR [\fIoptions\fR].HP 7\fBamdump\fR \fIconfig\fR.br.HP 10\fBamaespipe\fR.br.HP 8\fBamflush\fR [\-f] \fIconfig\fR.br.HP 10\fBamgetconf\fR [\fIconfig\fR] \fIparameter\fR.br.HP 8\fBamlabel\fR \fIconfig\fR \fIlabel\fR [\fIslot\fR\ \fIslot\fR].br.HP 5\fBammt\fR [\fIoptions\fR].HP 11\fBamoverview\fR \fIconfig\fR [\fIoptions\fR].br.HP 7\fBamplot\fR [\fIoptions\fR] \fIamdump\-files\fR.br.HP 10\fBamrecover\fR [\fIconfig\fR] [\fIoptions\fR].br.HP 9\fBamreport\fR [\fIconfig\fR] [\fIoptions\fR].br.HP 10\fBamrestore\fR [\fIoptions\fR] \fItapedevice\fR [\fIhostname\fR\ [\fIdiskname\fR]].br.HP 12\fBamfetchdump\fR [\fIoptions\fR] \fIconfig\fR [\fIhostname\fR\ [\fIdiskname\fR\ [\fIdate\fR\ [level]]]].HP 9\fBamrmtape\fR [\fIoptions\fR] \fIconfig\fR \fIlabel\fR.br.HP 9\fBamstatus\fR \fIconfig\fR [\fIoptions\fR].br.HP 7\fBamtape\fR \fIconfig\fR \fIcommand\fR [\fIoptions\fR].br.HP 11\fBamtapetype\fR [\fIoptions\fR].HP 6\fBamtoc\fR [\fIoptions\fR] \fIlogfile\fR.br.HP 12\fBamcheckdump\fR [\fIoptions\fR] \fIconfig\fR.br.HP 15\fBamserverconfig\fR [\fIoptions\fR] \fIconfig\fR.br.HP 12\fBamaddclient\fR \fIconfig\fR [\fIoptions\fR].br.SH "DESCRIPTION".PP\fIAmanda\fRis the "Advanced Maryland Automatic Network Disk Archiver"\. This manual page gives an overview of the\fIAmanda\fRcommands and configuration files for quick reference\..PPHere are all the\fIAmanda\fRcommands\. Each one has its own manual page\. See them for all the gory details\..PP\fBamdump\fR.RS 4Take care of automatic\fIAmanda\fRbackups\. This is normally executed by\fBcron\fRon a computer called the\fItape server host\fRand requests backups of file systems located on\fIbackup\fR\fIclients\fR\.\fBAmdump\fRbacks up all disks in the\fIdisklist\fRfile (discussed below) to tape or, if there is a problem, to a special\fIholding\fR\fIdisk\fR\. After all backups are done,\fBamdump\fRsends mail reporting failures and successes\..RE.PP\fBamflush\fR.RS 4Flush backups from the holding disk to tape\.\fBAmflush\fRis used after\fBamdump\fRhas reported it could not write backups to tape for some reason\. When this happens, backups stay in the holding disk\. Run\fBamflush\fRafter the tape problem is corrected to write backups from the holding disk to tape\..RE.PP\fBamcleanup\fR.RS 4Clean up after an interrupted\fBamdump\fR\. This command is only needed if\fBamdump\fRwas unable to complete for some reason, usually because the tape server host crashed while\fBamdump\fRwas running\..RE.PP\fBamrecover\fR.RS 4Provides an interactive interface to browse the\fIAmanda\fRindex files (backup image catalogues) and select which tapes to recover files from\. It can also run\fBamrestore\fRand a restore program (e\.g\.\fBtar\fR) to actually recover the files\..RE.PP\fBamrestore\fR.RS 4Read an\fIAmanda\fRtape, searching for requested backups\.\fBAmrestore\fRis suitable for everything from interactive restores of single files to a full restore of all partitions on a failed disk\..RE.PP\fBamfetchdump\fR.RS 4Performs\fIAmanda\fRtape restoration, similar to\fBamrestore\fR\. Additional capabilities include "hands\-off" searching of multiple tapes, automatic retrieval of specific dump files based on dump logs, and assembly of tape\-spanning split dump files\..RE.PP\fBamlabel\fR.RS 4Write an\fIAmanda\fRformat label onto a tape\. All\fIAmanda\fRtapes must be labeled with\fBamlabel\fR\.\fBAmdump\fRand\fBamflush\fRwill not write to an unlabeled tape (see TAPE MANAGEMENT below)\..RE.PP\fBamcheck\fR.RS 4Verify the correct tape is mounted and all file systems on all backup client systems are ready to be backed up\. Often run by\fBcron\fRbefore\fBamdump\fRto generate a mail warning that backups might fail unless corrective action is taken\..RE.PP\fBamadmin\fR.RS 4Take care of administrative tasks like finding out which tapes are needed to restore a filesystem, forcing hosts to do full backups of selected disks and looking at schedule balance information\..RE.PP\fBamtape\fR.RS 4Take care of tape changer control operations like loading particular tapes, ejecting tapes and scanning the tape storage slots\..RE.PP\fBamcheckdump\fR.RS 4Check the results of an\fIAmanda\fRdump\..RE.PP\fBamserverconfig\fR.RS 4Program to setup initial\fIAmanda\fRconfiguration\..RE.PP\fBamaddclient\fR.RS 4Program to add client to an existing\fIAmanda\fRconfiguration\..RE.PP\fBamrmtape\fR.RS 4Delete a tape from the\fIAmanda\fRdatabases\..RE.PP\fBamstatus\fR.RS 4Report the status of a running or completed\fBamdump\fR\..RE.PP\fBamoverview\fR.RS 4Display a chart of hosts and file systems backed up every run\..RE.PP\fBamplot\fR.RS 4Generate utilization plots of\fIAmanda\fRruns for performance tuning\..RE.PP\fBamreport\fR.RS 4Generate an\fIAmanda\fRsummary E\-mail report\..RE.PP\fBamtoc\fR.RS 4Generate table of content files for\fIAmanda\fRtapes\..RE.PP\fBamcheckdb\fR.RS 4Verify every tape\fIAmanda\fRknows about is consistent in the database\..RE.PP\fBamgetconf\fR.RS 4Look up parameters in the\fIAmanda\fRconfiguration file\..RE.PP\fBamtapetype\fR.RS 4Generate a tapetype definition\..RE.PP\fBamaespipe\fR.RS 4Wrapper program from aespipe (data encryption utility).RE.PP\fBamcrypt\fR.RS 4Reference encryption program for Amanda symmetric data encryption.RE.SH "CONFIGURATION".PPThere are three user\-editable files that control the behavior of\fIAmanda\fR\..PPThe first is\fBamanda\.conf\fR, the main configuration file\. It contains parameters to customize\fIAmanda\fRfor the site\. Refer to the\fBamanda.conf\fR(5), manpage for details on\fIAmanda\fRconfiguration parameters\..PPSecond is the\fIdisklist\fRfile, which lists hosts and disk partitions to back up\..PPThird is the\fItapelist\fRfile, which lists tapes that are currently active\. These files are described in more detail in the following sections\..PPAll files are stored in individual configuration directories under\fI/usr/local/etc/amanda/\fR\. A site will often have more than one configuration\. For example, it might have a\fInormal\fRconfiguration for everyday backups and an\fIarchive\fRconfiguration for infrequent full archival backups\. The configuration files would be stored under directories\fI/usr/local/etc/amanda/normal/\fRand\fI/usr/local/etc/amanda/archive/\fR, respectively\. Part of the job of an\fIAmanda\fRadministrator is to create, populate and maintain these directories\..PPAll log and database files generated by\fIAmanda\fRgo in corresponding directories somewhere\. The exact location is controlled by entries in\fBamanda\.conf\fR\. A typical location would be under\fI/var/adm/amanda\fR\. For the above example, the files might go in\fI/var/adm/amanda/normal/\fRand\fI/var/adm/amanda/archive/\fR\..PPAs log files are no longer needed (no longer contain relevant information),\fIAmanda\fRcycles them out in various ways, depending on the type of file\..PPDetailed information about\fBamdump\fRruns are stored in files named\fBamdump\.\fR\fINN\fRwhere\fINN\fRis a sequence number, with 1 being the most recent file\.\fBAmdump\fRrotates these files each run, keeping roughly the last\fBtapecycle\fR(see below) worth of them\..PPThe file used by\fBamreport\fRto generate the mail summary is named\fBlog\.\fR\fIYYYYMMDD\.NN\fRwhere\fIYYYYMMDD\fRis the datestamp of the start of the\fBamdump\fRrun and\fINN\fRis a sequence number started at 0\. At the end of each\fBamdump\fRrun, log files for runs whose tapes have been reused are renamed into a subdirectory of the main log directory (see the\fBlogdir\fRparameter below) named\fBoldlog\fR\. It is up to the\fIAmanda\fRadministrator to remove them from this directory when desired\..PPIndex (backup image catalogue) files older than the full dump matching the oldest backup image for a given client and disk are removed by\fBamdump\fRat the end of each run\..SH "DISKLIST FILE".PPThe\fIdisklist\fRfile determines which disks will be backed up by\fIAmanda\fR\. The file usually contains one line per disk:.sp.RS 4.nf\fIhostname diskname\fR [\fIdiskdevice\fR] \fIdumptype\fR [\fIspindle\fR [\fIinterface\fR] ].fi.RE.PPAll pairs [\fIhostname diskname\fR] must be unique\..PPLines starting with # are ignored, as are blank lines\. The fields have the following meanings:.PP\fIhostname\fR.RS 4The name of the host to be backed up\. If\fBdiskdevice\fRrefers to a PC share, this is the host\fIAmanda\fRwill run the Samba\fBsmbclient\fRprogram on to back up the share\..RE.PP\fIdiskname\fR.RS 4The name of the disk (a label)\. In most case, you set your\fBdiskname\fRto the\fBdiskdevice\fRand you don\'t set the\fBdiskdevice\.\fRIf you want multiple entries with the same\fBdiskdevice\fR, you must set a different\fBdiskname\fRfor each entry\. It\'s the\fBdiskname\fRthat you use on the commandline for any\fIAmanda\fRcommand\. Look at the example/disklist file for example\..RE.PP\fIdiskdevice\fR.RS 4Default: same as diskname\. The name of the disk device to be backed up\. It may be a full device name, a device name without the\fI/dev/\fRprefix, e\.g\.\fIsd0a\fR, or a mount point such as\fI/usr\fR\..spIt may also refer to a PC share by starting the name with two (forward) slashes, e\.g\.\fI//some\-pc/home\fR\. In this case, the\fBprogram\fRoption in the associated\fBdumptype\fRmust be entered as\fBGNUTAR\fR\. It is the combination of the double slash disk name and\fBprogram GNUTAR\fRin the\fBdumptype\fRthat triggers the use of Samba\..RE.PP\fIdumptype\fR.RS 4Refers to a\fBdumptype\fRdefined in the\fBamanda\.conf\fRfile\.\fIDumptype\fRs specify backup related parameters, such as whether to compress the backups, whether to record backup results in\fI/etc/dumpdates\fR, the disk\'s relative priority, etc\..RE.PP\fIspindle\fR.RS 4Default:\fB\-1\fR\. A number used to balance backup load on a host\.\fIAmanda\fRwill not run multiple backups at the same time on the same spindle, unless the spindle number is \-1, which means there is no spindle restriction\..RE.PP\fIinterface\fR.RS 4Default:\fIlocal\fR\. The name of a network interface definition in the\fBamanda\.conf\fRfile, used to balance network load\..RE.PPInstead of naming a\fBdumptype\fR, it is possible to define one in\-line, enclosing\fBdumptype\fRoptions within curly braces, one per line, just like a\fBdumptype\fRdefinition in\fBamanda\.conf\fR\. Since pre\-existing\fBdumptype\fRs are valid option names, this syntax may be used to customize\fBdumptype\fRs for particular disks\..PPA line break\fBmust\fRfollow the left curly bracket\..PPFor instance, if a\fBdumptype\fRnamed\fInormal\fRis used for most disks, but use of the holding disk needs to be disabled for the file system that holds it, this would work instead of defining a new dumptype:.sp.RS 4.nf\fIhostname diskname\fR [ \fIdiskdevice\fR ] {  normal  holdingdisk never} [ \fIspindle\fR [ \fIinterface\fR ] ].fi.RE.SH "TAPE MANAGEMENT".PPThe\fItapelist\fRfile contains the list of tapes in active use\. This file is maintained entirely by\fIAmanda\fRand should not be created or edited during normal operation\. It contains lines of the form:.PP.RS 4.nfYYYYMMDD label flags.fi.RE.PPWhere\fIYYYYMMDD\fRis the date the tape was written,\fIlabel\fRis a label for the tape as written by\fBamlabel\fRand\fIflags\fRtell\fIAmanda\fRwhether the tape may be reused, etc (see the\fBreuse\fRoptions of\fBamadmin\fR)\..PP\fBAmdump\fRand\fBamflush\fRwill refuse to write to an unlabeled tape, or to a labeled tape that is considered active\. There must be more tapes in active rotation (see the\fBtapecycle\fRoption) than there are runs in the backup cycle (see the\fBdumpcycle\fRoption) to prevent overwriting a backup image that would be needed to do a full recovery\..SH "OUTPUT DRIVERS".PPThe normal value for the\fBtapedev\fRparameter, or for what a tape changer returns, is a full path name to a non\-rewinding tape device, such as\fI/dev/nst0\fRor\fI/dev/rmt/0mn\fRor\fI/dev/nst0\.1\fRor whatever conventions the operating system uses\.\fIAmanda\fRprovides additional application level drivers that support non\-traditional tape\-simulations or features\. To access a specific output driver, set\fBtapedev\fR(or configure your changer to return) a string of the form\fIdriver\fR:\fIdriver\-info\fRwhere\fIdriver\fRis one of the supported drivers and\fIdriver\-info\fRis optional additional information needed by the driver\..PPThe supported drivers are:.PP\fItape\fR.RS 4This is the default driver\. The\fIdriver\-info\fRis the tape device name\. Entering.sp.RS 4.nftapedev /dev/rmt/0mn.fi.RE.spis really a short hand for.sp.RS 4.nftapedev tape:/dev/rmt/0mn.fi.RE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -