Server amanda: mudanças entre as edições

De Instituto de Física - UFRGS
Ir para navegaçãoIr para pesquisar
Sem resumo de edição
Sem resumo de edição
Linha 18: Linha 18:
  dumpcycle X days # the number of days in the normal dump cycle
  dumpcycle X days # the number of days in the normal dump cycle
  tapecycle X tapes      # the number of tapes in rotation
  tapecycle X tapes      # the number of tapes in rotation
tpchanger "chg-disk:/diario/slots"
changerfile "/etc/amanda/diario/changer.conf"
tapetype HARD-DISK              # what kind of tape it is (see tapetypes below)
labelstr "^diario_[1-14]*$"    # label constraint regex: all tapes must match
infofile "/etc/amanda/diario/curinfo"  # database DIRECTORY
logdir  "/etc/amanda/diario/log"              # log directory
indexdir "/etc/amanda/diario/index"            # index directory
define tapetype HARD-DISK{
        comment "HD"
        length 1000000 mbytes # 1TB
}
define changer "diario" {
  tpchanger "chg-disk:/diario/slots"
}


tpchanger "chg-disk:/diario/slots"
----
----



Edição das 12h35min de 30 de junho de 2011

Criar diretório:

mkdir /etc/amanda/NOME

Copiar arquivo de configuração padrão:

cp /usr/share/doc/amanda-common/examples/amanda.conf.gz /etc/amanda/NOME
cd /etc/amanda/NOME
gunzip amanda.conf.gz 

Calculo do tamanho do tamanho das fitas:

Espaço disponível * 0,9  <= tamanho das fitas * typecycle

Edita amanda.conf

org      "IF"
mailto   "fulano@if.ufrgs.br" 
dumpcycle X days # the number of days in the normal dump cycle
tapecycle X tapes      # the number of tapes in rotation
tpchanger "chg-disk:/diario/slots"
changerfile "/etc/amanda/diario/changer.conf"
tapetype HARD-DISK              # what kind of tape it is (see tapetypes below)
labelstr "^diario_[1-14]*$"     # label constraint regex: all tapes must match
infofile "/etc/amanda/diario/curinfo"   # database DIRECTORY
logdir   "/etc/amanda/diario/log"               # log directory
indexdir "/etc/amanda/diario/index"             # index directory
define tapetype HARD-DISK{
       comment "HD"
       length 1000000 mbytes # 1TB
}
define changer "diario" {
 tpchanger "chg-disk:/diario/slots"
}




Voltar para página Amanda

Configuração Básica

Adicionar Fitas

Configuração do servidor de backup AMANDA.IF.UFRGS.BR:

  • Entrar no diretorio /etc/amanda/diario e inserir a linha abaixo no arquivo disklist
kiev /etc root-tar
  • Seguindo o padrão:
HOSTNAME DIRETORIO root-tar
HOSTNAME = nome do servidor, não precisa declarar o dominio if.ufrgs.br
DIRETORIO = diretorio que deve ser "backupeado"
root-tar = metodo que utilizamos para backup, no caso somente tar
  • Inserir o servidor no arquivo /etc/hosts
vi /etc/hosts
143.54.196.4    kiev.if.ufrgs.br        kiev
  • Verificar o backup, se não tem nenhum erro de configuração com o comando amcheck diario
backup@amanda:~$ amcheck diario
Amanda Tape Server Host Check
-----------------------------
slot 4: read label `diario4', date `20090827'
cannot overwrite active tape diario4
slot 5: read label `diario5', date `20090827'
NOTE: skipping tape-writable test
Tape diario5 label ok
NOTE: host info dir /var/backups/diario/curinfo/kiev does not exist
NOTE: it will be created on the next run.
NOTE: index dir /var/backups/diario/index/kiev does not exist
NOTE: it will be created on the next run.
Server check took 0.117 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 2 hosts checked in 0.148 seconds, 0 problems found
(brought to you by Amanda 2.5.2p1)
  • Se o resultado do passo acima for "0 problems found", configuração realizado com sucesso.