will_drop
(usa Ubuntu)
Enviado em 22/03/2011 - 15:43h
Boa tarde amigos dos VOL, estou me aventurando em usar o bacula pela primeira vez, acredito que muitos ja o conheçam e o utilizem, li varios tutorias na internet mas o assunto não la dos "mais postados" por ai, existe muita coisa que ja é antiga, versões que a configuração nao se encaixou muito bem nesse meio tempo, em que estou aplicado a faze-lo funcionar:
Informaços que sao importantes:
Distro utilizada : Ubuntu 10.10 Desktop Edition
Versao do Mysql-Server utilizada : Mysql-server-5.1
Versao do bacula utilizada : Bacula 5.0.3
Arquivos do computador "servidor":
###################
# bacula-dir.conf #
#################### ARQUIVO PRINCIPAL DO BACULA
Director {
# NOME PRECISA ESTAR IGUAL NOS CLIENTES E NOS OUTROS ARQUIVOS
Name = bacula-dir
DIRport = 9101
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
# SENHA DO DIRECTOR
Password = "X11Bj6UKc8Z3+ftI6kC65WQ8FDRbqKmEYmvyYzPouDbS"
Messages = Standard
}
# TRABALHO PRINCIPAL
JobDefs {
# SUBSTITUIR TODOS OS 'DEFAULTJOB' POR 'ELDORADO'
Name = "TESTE"
# TIPO SERA BACKUP | RESTORE | E +1
Type = Backup
# LEVEL DO TRABALHO INCREMENTAL FULL DIFERENCIAL
Level = Incremental
# CLIENTE
Client = "will-fd"
# FILE SET - ARQUIVOS QUE SERAO COPIADOS | SHEDULE - AGENDAMENTO
FileSet = "will-fd"
Schedule = "will-fd"
# LOCAL DE ARMAZENAMENTO
Storage = File
# TIPO DE MENSAGEM STANDARD OU DAEMON
Messages = Standard
Pool = "will-fd"
Priority = 10
Write Bootstrap = "/var/bacula/working/%c.bsr"
}
# CLIENTE WILL
Client {
Name = will-fd
Address = 192.168.15.85
FDPort = 9102
Catalog = MyCatalog
# Password = "adTeyb/lN87Rn0hBGai1DNsfpLP5octpATnypzUXujjU2"
Password = "PJEYkZAtmh7pONB6M96uTBK488hFaNBmV"
Job Retention = 6 months
File Retention = 30 days
AutoPrune = yes
}
Job {
Name = "will"
Client = "will-fd"
JobDefs = "TESTE"
Level = Full
FileSet= "will-fd"
Schedule = "will-fd"
RunBeforeJob = "/etc/bacula/make_catalog_backup.pl MyCatalog"
RunAfterJob = "/etc/bacula/delete_catalog_backup"
Write Bootstrap = "/var/bacula/working/%n.bsr"
Priority = 11
}
FileSet {
Name = "will-fd"
Include {
Options {
signature = MD5
}
File = /etc
}
Exclude {
File = /var/bacula/working
File = /tmp
File = /proc
File = /tmp
File = /.journal
File = /.fsck
}
}
Schedule {
Name = "will-fd"
Run = Full sun at 22:00
Run = Differential 2nd-5th sun at 22:00
Run = Incremental mon-sat at 15:00
}
Pool {
Name = "will-fd"
Pool Type = Backup
Recycle = yes # Bacula can automatically recycle Volumes
AutoPrune = yes # Prune expired volumes
Volume Retention = 365 days # one year
}
Catalog {
Name = MyCatalog
# Uncomment the following line if you want the dbi driver
dbdriver = "dbi:mysql"; dbaddress = 127.0.0.1; dbport =3121
dbname = "bacula"; dbuser = "bacula"; dbpassword = "123"
}
Storage {
Name = File
Address = bacula
SDPort = 9103
Password = "R/FM1Tauj0VQWUxvJqB9TYamaOK6rFM4cJ2lPcc5OYCt"
Device = FileStorage
Media Type = File
}
Messages {
Name = Standard
mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: %t %e of %c %l\" %r"
operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: Intervention needed for %j\" %r"
mail = root@localhost = all, !skipped
operator = root@localhost = mount
console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
# time to time as it will grow indefinitely. However, it will
# also keep all your messages if they scroll off the console.
#
append = "/var/bacula/working/log" = all, !skipped
catalog = all
}
Console {
Name = bacula-mon
Password = "X1g6rwVxW1H4yCzi8kIeMMZre7IV/WJDCrokKBtyKR+P"
CommandACL = status, .status
}
##################
# bacula-fd.conf #
##################
Director {
Name = bacula-dir
Password = "X11Bj6UKc8Z3+ftI6kC65WQ8FDRbqKmEYmvyYzPouDbS"
# Password = "adTeyb/lN87Rn0hBGai1DNsfpLP5octpATnypzUXujjU"
}
FileDaemon {
Name = bacula-fd
FDport = 9102
WorkingDirectory = /var/bacula/working
Pid Directory = /var/run
Maximum Concurrent Jobs = 20
}
Messages {
Name = Standard
director = bacula-dir = all, !skipped, !restored
}
##################
# bacula-sd.conf #
##################
Storage { # definition of myself
Name = bacula-sd
SDPort = 9103 # Director's port
WorkingDirectory = "/var/bacula/working"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 20
}
Director {
Name = bacula-dir
Password = "R/FM1Tauj0VQWUxvJqB9TYamaOK6rFM4cJ2lPcc5OYCt"
}
Device {
Name = FileStorage
Media Type = File
Archive Device = /tmp
LabelMedia = yes; # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes; # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
}
Messages {
Name = Standard
director = bacula-dir = all
}
RESULTADO DO RESTART DO BACULA
root@bacula:~# /etc/bacula/bacula restart
Stopping the Bacula File daemon
Stopping the Bacula Storage daemon
Stopping the Bacula Director daemon
Starting the Bacula Storage daemon
Starting the Bacula File daemon
Starting the Bacula Director daemon
root@bacula:~#
RESULTADO DA TENTATIVA DE CONEXAO PELO BCONSOLE
root@bacula:~# bconsole
Conectando ao Diretor localhost:9101
root@bacula:~#
realmente estou perdido, ja vi tantas configurações diferentes que nao sei se estou certo ou nao no q estou fazendo.
ele nao mostra nenhum erro, mas tbm nao conecta, alguem pode me ajudar?