게시물 261건
   
[redhat7.3] rhel7 Amanda server config [ 아만다 ]
글쓴이 : theko 날짜 : 2017-04-06 (목) 09:29 조회 : 3913
- 7버전으로 서버를 구성하는데 애를 먹었다. 하지만 원인을 찾았고, 그 내용을 
여기에 기록!!

- 전에 기록한것처럼 xinetd 설치 후에 그 밑에 amanda file create

-> 결정적으로 틀린건 인증 방식 내용을 넣는것이다. 

[root@amsrv ]# cat /etc/amanda/amcli3/amanda.conf 
org      "amcli3"   
mailto   "amandabackup"            # mail address
dumpuser "amandabackup" 
inparallel 4        
dumporder "sssS"    
taperalgo first     
displayunit "k"     
netusage  8000 Kbps 
dumpcycle 4 weeks   
runspercycle 20       
tapecycle 25 tapes  
bumpsize 20 Mb      # minimum savings (threshold) to bump level 1 -> 2
bumpdays 1      # minimum days at each level
bumpmult 4      # threshold = bumpsize * bumpmult^(level-1)
etimeout 300        # number of seconds per filesystem for estimates.
dtimeout 1800       # number of idle seconds before a dump is aborted.
ctimeout 30     # maximum number of seconds that amcheck waits
device_output_buffer_size 1280k
usetimestamps yes
flush-threshold-dumped 0
flush-threshold-scheduled 0
taperflush 0
autoflush no
runtapes 2      
tpchanger "chg-disk"    
tapedev "file:///backup/amcli3" 
changerfile "/etc/amanda/amcli3/changer.conf"
changerdev "/dev/null"
maxdumpsize -1      # Maximum number of bytes the planner will schedule
tapetype HARD-DISK      # what kind of tape it is (see tapetypes below)
labelstr "^amcli3-[0-9][0-9]*$" # label constraint regex: all tapes must match
amrecover_do_fsf yes        # amrecover will call amrestore with the
amrecover_check_label yes   # amrecover will call amrestore with the
// 이 두줄은 3.3.3 아만다 버전에 옵션이 없다. 주석처리 해야한다.

amrecover_changer "changer" # amrecover will use the changer if you restore

holdingdisk hd1 {
    comment "main holding disk"
    directory "/dumps/amcli3"   # where the holding disk is   
    use 40 Gb           # how much space can we use on it
    chunksize 1024Mb    # size of chunk if you want big dump to be
   }

infofile "/etc/amanda/amcli3/curinfo"   # database DIRECTORY
logdir   "/etc/amanda/amcli3"       # log directory
indexdir "/etc/amanda/amcli3/index"     # index directory

define dumptype global {
    comment "Global definitions"
}

auth "bsd"  
// 2.6 아만다 버전과 다르게 3.3.3 버전에서는 이 파일에서 인증방식을 정한다. 
// 그래서 위와 같이 인증방식 내용을 추가 해줘야 한다. 


define interface local {
    comment "a local disk"
    use 8000 kbps
}

define application-tool app_amgtar {
    comment "amgtar"
    plugin  "amgtar"
}

define dumptype data-tar { 
    global 
    program "GNUTAR" 
        tape_splitsize 1000 Mb
    comment "etc dumped with tar" 
    compress none 
    index yes 
    priority high
} 

define dumptype data-dump { 
        global 
        program "DUMP" 
        comment "etc dumped with dump" 
        compress none
        index yes 
        priority low 
} 

define tapetype HARD-DISK { 
   comment "disk-to-disk" 
   length 1024 mbytes 
} 

define script-tool sc-email {
  comment "script-email"
  plugin  "script-email"
  execute_on pre-dle-amcheck, pre-host-amcheck, post-dle-amcheck, post-host-amcheck, pre-dle-estimate, pre-host-estimate, post-dle-estimate, post-host-estimate, pre-dle-backup, pre-host-backup, post-dle-backup, post-host-backup

  execute_where server          # or client
  property "mailto" "martinea"
}
unreserved-tcp-port 1025,65535



// 이외에는 크게 다를게 없다. 

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com