Escolar Documentos
Profissional Documentos
Cultura Documentos
CAPA
Backup profissional
Componentes
Director (bacula-dir)
Armazenamento (bacula-sd)
Arquivos (bacula-fd)
Console
Memria do Bacula
CAPA | Bacula
Centro de controle
Agentes
Armazenamento
http://www.linuxmagazine.com.br
Bacula | CAPA
Console
administrativo
O ltimo componente do Bacula
o console a interface do administrador. Se for desejvel controlar
manualmente o Bacula, o console administrativo a ferramenta
ideal. Alm do Bconsole, baseado
em shell, h tambm um console
Instalao
./configure --with-mysql
make
make install
47
CAPA | Bacula
Director {
Name = dir-backup
Password = suefheKt70tSOz29JUGwSxPZrVrH
}
Director {
Name = backup-mon
Password = iDD6sy05efsfNsNjZflTkedwMpdJ
Monitor = yes
}
FileDaemon {
Name = backup-fd
FDport = 9102
WorkingDirectory = /var/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
Messages {
Name = Standard
director = dir-backup = all, !skipped, !restored
}
48
Storage {
Name = backup-sd
SDPort = 9103
WorkingDirectory = /var/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
Director {
Name = backup-dir
Password = zLsrudRETNgNMSmyE0ZcNvHgI8yW
}
Director {
Name = backup-mon
Password = KmAQ2EK0KEeE5j5gXLVLpVvyak/Z
Monitor = yes
}
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp
LabelMedia = yes;
Random Access = Yes;
AutomaticMount = yes;
RemovableMedia = no;
AlwaysOpen = no;
}
Messages {
Name = Standard
director = dir-backup- = all
}
Configurao
http://www.linuxmagazine.com.br
Bacula | CAPA
Primeiro backup
Restaurao
Director {
Name = dir-backup
DIRport = 9101
QueryFile = /etc/bacula/query.sql
WorkingDirectory = /var/bacula/working
PidDirectory = /var/run
Maximum Concurrent Jobs = 1
Password = 4V60qoOSZgEBrirJBNAXbUUmAcM8
Messages = Daemon
}
JobDefs {
Name = DefaultJob
Type = Backup
Level = Incremental
Client = backup-fd
FileSet = Full Set
Schedule = WeeklyCycle
Storage = File
Messages = Standard
Pool = Default
Priority = 10
}
Job {
Name = Client1
JobDefs = DefaultJob
Write Bootstrap = /var/bacula/working/Client1.bsr
}
Job {
Name = BackupCatalog
JobDefs = DefaultJob
Level = Full
FileSet=Catalog
Schedule = WeeklyCycleAfterBackup
RunBeforeJob = /etc/bacula/make_catalog_backup bacula bacula
RunAfterJob = /etc/bacula/delete_catalog_backup
Write Bootstrap = /var/bacula/working/BackupCatalog.bsr
Priority = 11
}
Job {
Name = RestoreFiles
Type = Restore
Client=backup-fd
FileSet=Full Set
Storage = File
Pool = Default
Messages = Standard
Where = /tmp/bacula-restores
}
FileSet {
Name = Full Set
Include {
Options { signature = MD5 }
File = /usr/local/src/bacula-2.0.3
}
Exclude {
File = /proc
File = /tmp
49
CAPA | Bacula
Listagem 4 (continuao)
63
File = /.journal
64
File = /.fsck
65 }
66 }
067
068 Schedule {
069 Name = Semanal
070 Run = Full 1st sun at 23:05
071 Run = Differential 2nd-5th sun at 23:05
072 Run = Incremental mon-sat at 23:05
073 }
074
075 Schedule {
076 Name = SemanalAposBackup
077 Run = Full sun-sat at 23:10
078 }
079
080 FileSet {
081 Name = Catalogo
082 Include {
083
Options { signature = MD5 }
084
File = /var/bacula/working/bacula.sql
085 }
086 }
087
088 Client {
089 Name = backup-fd
090 Address = backup
091 FDPort = 9102
092 Catalog = MyCatalog
093 Password = w4Usp8cV18pitA56WhtUHYSbNat83NgvesmiH
094 File Retention = 30 days
095 Job Retention = 6 months
096 AutoPrune = yes
097 }
098
099 Storage {
100 Name = Arquivo
101 Address = backup
102 SDPort = 9103
103 Password = 0KaQ38vP8E8R2jKERde1BIZH5p27jimk62MXl1kZ
104 Device = FileStorage
105 Media Type = File
106 }
107
108 Catalog {
109 Name = MeuCatalogo
110 dbname = bacula; user = bacula; password =
111 }
112
113 Pool {
114 Name = Default
115 Pool Type = Backup
116 Recycle = yes # O Bacula consegue reciclar volumes
automaticamente
117 AutoPrune = yes # Remover volumes expirados
118 Volume Retention = 365 days # Um ano
119 }
120
121 Console {
122 #...
123 }
50
Concluses
Mais informaes
[1] Bacula:
http://www.bacula.org
[2] Compatibilidade com o MTX:
http://mtx.opensource-sw.
net/compatibility.php
Gostou do artigo?
Queremos ouvir sua opinio.
Fale conosco em
cartas@linuxmagazine.com.br
Este artigo no nosso site:
http://lnm.com.br/article/3101
http://www.linuxmagazine.com.br