Amanda相关的配置文件

Amanda相关的配置文件
2010-03-09 13:58
需要关注的几个配置文件:


####服务器端的配置文件####

@在建立vtape前,对/etc/amanda/DailySet1/amanda.conf 进行查看修改,这个是实际其作用的主要配置文件
   其内容如下:
----------------------------start-----------------------------------------    
org "DailySet1"         # your organization name for reports
mailto " root@localhost" # space separated list of operators at your site
dumpcycle 1week         # the number of days in the normal dump cycle
runspercycle 5          # the number of amdump runs in dumpcycle days
tapecycle 12    # the number of tapes in rotation 原来这个是分配给这个方案的所有磁盘槽 即使用amtape进行检查时,会检查12个槽
runtapes 1              # number of tapes to be used in a single run of amdump
tpchanger " chg-disk"    # the tape-changer glue script
tapedev "file://data/amanda/vtape/DailySet1"    # the no-rewind tape device !!:记得这里路径需要改再续加一个slots,改成"file://data/amanda/vtape/DailySet1/slots"
                                                               #如果按照默认的话 那么在建立虚拟磁盘库时就不要再创建那个slots目录了,直接在DailySet1目录下建立一系列磁带机就好了
changerfile "/etc/amanda/DailySet1/changer.conf"        # tape changer configuration parameter file
changerdev "/dev/null" # tape changer configuration parameter device
tapetype HARDDISK       # what kind of tape it is
labelstr "DailySet1"    # label constraint regex: all tapes must match
dtimeout 1800   # number of idle seconds before a dump is aborted
ctimeout 30     # max number of secconds amcheck waits for each client
etimeout 300    # number of seconds per filesystem for estimates
define dumptype global {
       comment "Global definitions"
       auth "bsdtcp"
}
define dumptype gui-base {
       global
       program "GNUTAR"
       comment "gui base dumptype dumped with tar"
       compress none
       index yes
}
define tapetype HARDDISK {
       comment "Virtual Tapes"
       length 5000 mbytes
}
includefile "advanced.conf"
includefile "/etc/amanda/template.d/dumptypes"
includefile "/etc/amanda/template.d/tapetypes"

----------------------------end---------------------------------------------



@同样需要关注的是/var/lib/amanda/example/目录下的配置文件 amanda-client.conf与amanda.conf
   一一:这里的/var/lib/amanda/example/amanda-client.conf 与/etc/amanda/amanda-client.conf( 这个文件是安装
           完就产生的而且没有tapedev项
)的内容基本是一致的
   内容如下:
------------------------------start------------------------------------------
#
# amanda.conf - sample Amanda client configuration file.
#
# This file normally goes in /etc/amanda/amanda-client.conf.
#

conf "DailySet1"                # your config name

index_server "localhost"        # your amindexd server
tape_server "localhost"        # your amidxtaped server
tapedev "chg-disk"              #在example中没有这一项,要注意
#tapedev      "tape:/dev/YOUR-TAPE-DEVICE-HERE" # your tape device
                        # if not set, Use configure or ask server.
                        # if set to empty string "", ask server
                        # amrecover will use the changer if set to the value
                        # of 'amrecover_changer' in the server amanda.conf.

#   auth        - authentication scheme to use between server and client.
#                 Valid values are "bsd", "bsdudp", "bsdtcp", "krb5", "local",
#                 "rsh" and "ssh".
#                 Default: [auth "bsdtcp"]
auth "bsdtcp"

ssh_keys ""                     # your ssh keys file if you use ssh auth
---------------------------end-----------------------------------------------
二二: 在配置的时候需要将/var/lib/amanda/example/amanda.conf 拷贝到/etc/amanda/DailySet1/amanda.conf
  
第一个amanda.conf是一个长达700多行的配置文件,不过大多都是说明;第二个配置文件见本文开头的那个文件介绍
这里我有个问题:就是我记得的是对example中的配置文件改啊改,但是第二个文件好像是自动生成的,是什么时候生成的
   难道是在执行那个长配置命令时么?


@由于要对客户机的名字进行解析,因此在配置前,应当在服务器端的/etc/hosts文件末尾添加客户机的映射关系。
     比如在一个服务器端中,Amanda11为客户端,那么hosts文件肯能为:
----------------------------------start-----------------------------------
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.Amanda3       localhost       localhost.localdomain   localhost    #服务器自身
::1     localhost6.localdomain6 localhost6
192.168.1.154   Amanda11               #客户端映射


-------------------------------end---------------------------------------

@还应该要修改的一个配置文件是,服务器端(客户机端也必须同样修改)允许客户机端进行的操作,也就是操作权限列表。里面
规定了所有客户端所允许进行的操作,即允许执行的程序表. 该文件目录为:/var/lib/amanda/.amandahosts
这里如果在连接check时,发生不允许,会有相应的提示。 使用amcheck 命令进行连接检查。

   其中里面内容可能为:
---------------------------------------start---------------------------------
localhost   root amindexd amidxtaped
localhost   amandabackup amdump

Amanda11 root amindexd amidxtaped     #这个。。。。这里我不知道哪个是对的,应该是第一个吧
192.168.1.154 amindexd amidxtaped

localhost.localdomain   root amindexd amidxtaped
localhost.localdomain   amandabackup amdump

-----------------------------------end--------------------------------------
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值