Adicionar Fitas
De Instituto de Física - UFRGS
Ir para navegaçãoIr para pesquisar
Configuração Backup Mensal:
- Editar arquivo amanda.conf
cd /etc/amanda/mensal/ vim amanda.conf
dumpcycle 30 #número de dias de backups completos tapecycle 5 tapes infofile "/mensal/logs/curinfo" logdir "/mensal/logs" indexdir "/mensal/logs/index" tpchanger "chg-disk" changerfile "/etc/amanda/mensal/changer" tapedev "file:/mensal/slots" tapetype HARDDISK labelstr "mensal_[1-5]*"
- Editar arquivo changer.conf
vim /etc/amanda/mensal/changer.conf
multieject 0 gravity 0 needeject 0 ejectdelay 0 statefile /var/lib/amanda/mensal/changer-status firstslot 1 lastslot 5 slot 1 file:/mensal/mensal_1 slot 2 file:/mensal/mensal_2 slot 3 file:/mensal/mensal_3 slot 4 file:/mensal/mensal_4 slot 5 file:/mensal/mensal_5
- Editar arquivo disklist
vim /etc/amanda/mensal/disklist
Ex: #Amanda amanda /etc root-tar
Criar sub-diretórios:
mkdir -p /mensal/mensal_1/data mkdir -p /mensal/mensal_2/data mkdir -p /mensal/mensal_3/data mkdir -p /mensal/mensal_4/data mkdir -p /mensal/mensal_5/data
chown -R backup:backup /mensal
- Adicionar no cron